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.



29124
29125
29126
29127
29128
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29124

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.



29122
29123
29124
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29122

def display
  @display
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



29134
29135
29136
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29134

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

#to_hashObject



29138
29139
29140
29141
29142
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29138

def to_hash
  {
    :display => display
  }
end

#to_jsonObject



29130
29131
29132
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 29130

def to_json
  JSON.dump(to_hash)
end