Class: Io::Flow::V0::Models::PaymentMethodCardNumberCipher
- Inherits:
-
CardNumber
- Object
- CardNumber
- Io::Flow::V0::Models::PaymentMethodCardNumberCipher
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#cipher ⇒ Object
readonly
Returns the value of attribute cipher.
Attributes inherited from CardNumber
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ PaymentMethodCardNumberCipher
constructor
A new instance of PaymentMethodCardNumberCipher.
- #subtype_to_hash ⇒ Object
- #to_json ⇒ Object
Methods inherited from CardNumber
Constructor Details
#initialize(incoming = {}) ⇒ PaymentMethodCardNumberCipher
Returns a new instance of PaymentMethodCardNumberCipher.
57004 57005 57006 57007 57008 57009 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57004 def initialize(incoming={}) super(:type => CardNumber::Types::PAYMENT_METHOD_CARD_NUMBER_CIPHER) opts = HttpClient::Helper.symbolize_keys(incoming) HttpClient::Preconditions.require_keys(opts, [:cipher], 'PaymentMethodCardNumberCipher') @cipher = HttpClient::Preconditions.assert_class('cipher', opts.delete(:cipher), String) end |
Instance Attribute Details
#cipher ⇒ Object (readonly)
Returns the value of attribute cipher.
57002 57003 57004 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57002 def cipher @cipher end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
57015 57016 57017 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57015 def copy(incoming={}) PaymentMethodCardNumberCipher.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#subtype_to_hash ⇒ Object
57019 57020 57021 57022 57023 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57019 def subtype_to_hash { :cipher => cipher } end |
#to_json ⇒ Object
57011 57012 57013 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 57011 def to_json JSON.dump(to_hash) end |