Class: Io::Flow::V0::Models::ActivationPutForm

Inherits:
Object
  • Object
show all
Defined in:
lib/flow_commerce/flow_api_v0_client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#placeholderObject (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_hashObject



29482
29483
29484
29485
29486
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29482

def to_hash
  {
    :placeholder => placeholder
  }
end

#to_jsonObject



29474
29475
29476
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29474

def to_json
  JSON.dump(to_hash)
end