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.



23259
23260
23261
23262
23263
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23259

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.



23257
23258
23259
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23257

def display
  @display
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



23269
23270
23271
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23269

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

#to_hashObject



23273
23274
23275
23276
23277
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23273

def to_hash
  {
    :display => display
  }
end

#to_jsonObject



23265
23266
23267
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 23265

def to_json
  JSON.dump(to_hash)
end