class Io::Flow::Reference::V0::Models::PaymentMethodImages
Attributes
large[R]
medium[R]
small[R]
Public Class Methods
new(incoming={})
click to toggle source
# File lib/flow_reference_v0_client.rb, line 773 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:small, :medium, :large], 'PaymentMethodImages') @small = (x = opts.delete(:small); x.is_a?(::Io::Flow::Reference::V0::Models::PaymentMethodImage) ? x : ::Io::Flow::Reference::V0::Models::PaymentMethodImage.new(x)) @medium = (x = opts.delete(:medium); x.is_a?(::Io::Flow::Reference::V0::Models::PaymentMethodImage) ? x : ::Io::Flow::Reference::V0::Models::PaymentMethodImage.new(x)) @large = (x = opts.delete(:large); x.is_a?(::Io::Flow::Reference::V0::Models::PaymentMethodImage) ? x : ::Io::Flow::Reference::V0::Models::PaymentMethodImage.new(x)) end
Public Instance Methods
copy(incoming={})
click to toggle source
# File lib/flow_reference_v0_client.rb, line 785 def copy(incoming={}) PaymentMethodImages.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end
to_hash()
click to toggle source
# File lib/flow_reference_v0_client.rb, line 789 def to_hash { :small => small.to_hash, :medium => medium.to_hash, :large => large.to_hash } end
to_json()
click to toggle source
# File lib/flow_reference_v0_client.rb, line 781 def to_json JSON.dump(to_hash) end