Class: Io::Flow::V0::Models::PaymentMethodDataOptionLogoSvg
- Inherits:
-
PaymentMethodDataOptionLogo
- Object
- PaymentMethodDataOptionLogo
- Io::Flow::V0::Models::PaymentMethodDataOptionLogoSvg
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from PaymentMethodDataOptionLogo
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentMethodDataOptionLogoSvg
constructor
A new instance of PaymentMethodDataOptionLogoSvg.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodDataOptionLogo
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodDataOptionLogoSvg
Returns a new instance of PaymentMethodDataOptionLogoSvg.
57603 57604 57605 57606 57607 57608 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57603 def initialize(incoming={}) super(:type => PaymentMethodDataOptionLogo::Types::PAYMENT_METHOD_DATA_OPTION_LOGO_SVG) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:url], 'PaymentMethodDataOptionLogoSvg') @url = HttpClient::Preconditions.assert_class('url', opts.delete(:url), String) end |
Instance Attribute Details
#url ⇒ Object (readonly)
Returns the value of attribute url.
57601 57602 57603 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57601 def url @url end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
57614 57615 57616 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57614 def copy(incoming={}) PaymentMethodDataOptionLogoSvg.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
57618 57619 57620 57621 57622 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57618 def subtype_to_hash { :url => url } end |
#to_json ⇒ Object
57610 57611 57612 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57610 def to_json JSON.dump(to_hash) end |