class Io::Flow::Reference::V0::Models::PaymentMethodImage

Attributes

height[R]
url[R]
width[R]

Public Class Methods

new(incoming={}) click to toggle source
# File lib/flow_reference_v0_client.rb, line 741
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_reference_v0_client.rb, line 753
def copy(incoming={})
  PaymentMethodImage.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end
to_hash() click to toggle source
# File lib/flow_reference_v0_client.rb, line 757
def to_hash
  {
    :url => url,
    :width => width,
    :height => height
  }
end
to_json() click to toggle source
# File lib/flow_reference_v0_client.rb, line 749
def to_json
  JSON.dump(to_hash)
end