Class: Io::Flow::V0::Models::FtpFolderForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::FtpFolderForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#webhook ⇒ Object
readonly
Returns the value of attribute webhook.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ FtpFolderForm
constructor
A new instance of FtpFolderForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ FtpFolderForm
Returns a new instance of FtpFolderForm.
33787 33788 33789 33790 33791 33792 33793 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33787 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:path], 'FtpFolderForm') @path = HttpClient::Preconditions.assert_class('path', opts.delete(:path), String) @webhook = HttpClient::Preconditions.assert_boolean('webhook', (x = opts.delete(:webhook); x.nil? ? false : x)) @description = (x = opts.delete(:description); x.nil? ? nil : HttpClient::Preconditions.assert_class('description', x, String)) end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
33785 33786 33787 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33785 def description @description end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
33785 33786 33787 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33785 def path @path end |
#webhook ⇒ Object (readonly)
Returns the value of attribute webhook.
33785 33786 33787 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33785 def webhook @webhook end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
33799 33800 33801 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33799 def copy(incoming={}) FtpFolderForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
33803 33804 33805 33806 33807 33808 33809 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33803 def to_hash { :path => path, :webhook => webhook, :description => description } end |
#to_json ⇒ Object
33795 33796 33797 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 33795 def to_json JSON.dump(to_hash) end |