class Io::Flow::V0::Models::KlarnaPaymentMethodCategory
Attributes
descriptive_asset_url[R]
id[R]
name[R]
standard_asset_url[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 47759 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:id], 'KlarnaPaymentMethodCategory') @id = HttpClient::Preconditions.assert_class('id', opts.delete(:id), String) @name = (x = opts.delete(:name); x.nil? ? nil : HttpClient::Preconditions.assert_class('name', x, String)) @standard_asset_url = (x = opts.delete(:standard_asset_url); x.nil? ? nil : HttpClient::Preconditions.assert_class('standard_asset_url', x, String)) @descriptive_asset_url = (x = opts.delete(:descriptive_asset_url); x.nil? ? nil : HttpClient::Preconditions.assert_class('descriptive_asset_url', x, String)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 47772 def copy(incoming={}) KlarnaPaymentMethodCategory.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 47776 def to_hash { :id => id, :name => name, :standard_asset_url => standard_asset_url, :descriptive_asset_url => descriptive_asset_url } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 47768 def to_json JSON.dump(to_hash) end