Class: Infrataster::Resources::FtpResource

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/infrataster/resources/ftp_resource.rb

Constant Summary collapse

Error =
Class.new(StandardError)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(command) ⇒ FtpResource

Returns a new instance of FtpResource.



12
13
14
15
# File 'lib/infrataster/resources/ftp_resource.rb', line 12

def initialize(command)
  @command = command
  @ftp = nil
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



9
10
11
# File 'lib/infrataster/resources/ftp_resource.rb', line 9

def command
  @command
end

#ftpObject

Returns the value of attribute ftp.



10
11
12
# File 'lib/infrataster/resources/ftp_resource.rb', line 10

def ftp
  @ftp
end

Instance Method Details

#to_sObject



17
18
19
# File 'lib/infrataster/resources/ftp_resource.rb', line 17

def to_s
  "ftp:"
end