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.



20857
20858
20859
20860
20861
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20857

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.



20855
20856
20857
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20855

def display
  @display
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



20867
20868
20869
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20867

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

#to_hashObject



20871
20872
20873
20874
20875
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20871

def to_hash
  {
    :display => display
  }
end

#to_jsonObject



20863
20864
20865
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 20863

def to_json
  JSON.dump(to_hash)
end