Class: Io::Flow::V0::Models::ActivationPutForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::ActivationPutForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ ActivationPutForm
constructor
A new instance of ActivationPutForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ ActivationPutForm
Returns a new instance of ActivationPutForm.
29469 29470 29471 29472 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29469 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @placeholder = (x = opts.delete(:placeholder); x.nil? ? nil : HttpClient::Preconditions.assert_boolean('placeholder', x)) end |
Instance Attribute Details
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder.
29467 29468 29469 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29467 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
29478 29479 29480 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29478 def copy(incoming={}) ActivationPutForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
29482 29483 29484 29485 29486 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29482 def to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
29474 29475 29476 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29474 def to_json JSON.dump(to_hash) end |