Class: Io::Flow::V0::Models::PaymentMethodDataInitGooglepay
- Inherits:
-
PaymentMethodData
- Object
- PaymentMethodData
- Io::Flow::V0::Models::PaymentMethodDataInitGooglepay
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#placeholder ⇒ Object
readonly
Returns the value of attribute placeholder.
Attributes inherited from PaymentMethodData
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentMethodDataInitGooglepay
constructor
A new instance of PaymentMethodDataInitGooglepay.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from PaymentMethodData
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodDataInitGooglepay
Returns a new instance of PaymentMethodDataInitGooglepay.
50938 50939 50940 50941 50942 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50938 def initialize(incoming={}) super(:type => PaymentMethodData::Types::PAYMENT_METHOD_DATA_INIT_GOOGLEPAY) opts = HttpClient::Helper.symbolize_keys(incoming) @placeholder = (x = opts.delete(:placeholder); x.nil? ? nil : HttpClient::Preconditions.assert_class('placeholder', x, String)) end |
Instance Attribute Details
#placeholder ⇒ Object (readonly)
Returns the value of attribute placeholder.
50936 50937 50938 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50936 def placeholder @placeholder end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
50948 50949 50950 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50948 def copy(incoming={}) PaymentMethodDataInitGooglepay.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
50952 50953 50954 50955 50956 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50952 def subtype_to_hash { :placeholder => placeholder } end |
#to_json ⇒ Object
50944 50945 50946 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 50944 def to_json JSON.dump(to_hash) end |