Class: Io::Flow::V0::Models::FtpServer
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::FtpServer
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#hostname ⇒ Object
readonly
Returns the value of attribute hostname.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ FtpServer
constructor
A new instance of FtpServer.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ FtpServer
Returns a new instance of FtpServer.
33877 33878 33879 33880 33881 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33877 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:hostname], 'FtpServer') @hostname = HttpClient::Preconditions.assert_class('hostname', opts.delete(:hostname), String) end |
Instance Attribute Details
#hostname ⇒ Object (readonly)
Returns the value of attribute hostname.
33875 33876 33877 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33875 def hostname @hostname end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
33887 33888 33889 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33887 def copy(incoming={}) FtpServer.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
33891 33892 33893 33894 33895 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33891 def to_hash { :hostname => hostname } end |
#to_json ⇒ Object
33883 33884 33885 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33883 def to_json JSON.dump(to_hash) end |