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.



27519
27520
27521
27522
27523
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27519

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.



27517
27518
27519
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27517

def display
  @display
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



27529
27530
27531
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27529

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

#to_hashObject



27533
27534
27535
27536
27537
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27533

def to_hash
  {
    :display => display
  }
end

#to_jsonObject



27525
27526
27527
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 27525

def to_json
  JSON.dump(to_hash)
end