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.



21893
21894
21895
21896
21897
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21893

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.



21891
21892
21893
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21891

def display
  @display
end

Instance Method Details

#copy(incoming = {}) ⇒ Object



21903
21904
21905
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21903

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

#to_hashObject



21907
21908
21909
21910
21911
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21907

def to_hash
  {
    :display => display
  }
end

#to_jsonObject



21899
21900
21901
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 21899

def to_json
  JSON.dump(to_hash)
end