Class: Infrataster::Resources::FtpResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- Infrataster::Resources::FtpResource
- Defined in:
- lib/infrataster/resources/ftp_resource.rb
Constant Summary collapse
- Error =
Class.new(StandardError)
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#ftp ⇒ Object
Returns the value of attribute ftp.
Instance Method Summary collapse
-
#initialize(command) ⇒ FtpResource
constructor
A new instance of FtpResource.
- #to_s ⇒ Object
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
#command ⇒ Object (readonly)
Returns the value of attribute command.
9 10 11 |
# File 'lib/infrataster/resources/ftp_resource.rb', line 9 def command @command end |
#ftp ⇒ Object
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_s ⇒ Object
17 18 19 |
# File 'lib/infrataster/resources/ftp_resource.rb', line 17 def to_s "ftp:" end |