Type:
Class
Constants:
DEFAULT_PORT : 21

A Default port of 21 for URI::FTP

COMPONENT : [ :scheme, :userinfo, :host, :port, :path, :typecode ].freeze

An Array of the available components for URI::FTP

TYPECODE : ['a', 'i', 'd'].freeze

Typecode is âaâ, âiâ or âdâ.

  • âaâ indicates a text file (the FTP command was ASCII)

  • âiâ indicates a binary file (FTP command IMAGE)

  • âdâ indicates the contents of a directory should be displayed

TYPECODE_PREFIX : ';type='.freeze

Typecode prefix

';type='

FTP URI syntax is defined by RFC1738 section 3.2.

This class will be redesigned because of difference of implementations; the structure of its path. draft-hoffman-ftp-uri-04 is a draft but it is a good summary about the de facto spec. tools.ietf.org/html/draft-hoffman-ftp-uri-04

build

build(args) Class Public methods Description Creates

2015-06-10 03:28:34
typecode=

typecode=(typecode) Instance Public methods Args v

2015-06-10 03:41:54
path

path() Instance Public methods Returns the path from an

2015-06-10 03:33:16
set_path

set_path(v) Instance Protected methods

2015-06-10 03:47:00
new

new(*arg) Class Public methods Description Creates

2015-06-10 03:31:00
set_typecode

set_typecode(v) Instance Protected methods private setter for the typecode v

2015-06-10 03:52:52
to_s

to_s() Instance Public methods

2015-06-10 03:35:47