Class: Io::Flow::V0::Models::AuthorizationResultDescription

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 = {}) ⇒ AuthorizationResultDescription

Returns a new instance of AuthorizationResultDescription.



22643
22644
22645
22646
22647
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22643

def initialize(incoming={})
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:display], 'AuthorizationResultDescription')
  @display = HttpClient::Preconditions.assert_class('display', opts.delete(:display), String)
end

Instance Attribute Details

#displayObject (readonly)

Returns the value of attribute display.



22641
22642
22643
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22641

def display
  @display
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



22653
22654
22655
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22653

def copy(incoming={})
  AuthorizationResultDescription.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end

#to_hashObject



22657
22658
22659
22660
22661
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22657

def to_hash
  {
    :display => display
  }
end

#to_jsonObject



22649
22650
22651
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 22649

def to_json
  JSON.dump(to_hash)
end