class Io::Flow::V0::Models::PaymentMethodImage
Attributes
height[R]
url[R]
width[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 57714 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:url, :width, :height], 'PaymentMethodImage') @url = HttpClient::Preconditions.assert_class('url', opts.delete(:url), String) @width = HttpClient::Preconditions.assert_class('width', opts.delete(:width), Integer) @height = HttpClient::Preconditions.assert_class('height', opts.delete(:height), Integer) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 57726 def copy(incoming={}) PaymentMethodImage.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 57730 def to_hash { :url => url, :width => width, :height => height } end
to_json()
click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 57722 def to_json JSON.dump(to_hash) end