Class: Clerk::Models::Components::AdjustCreditBalanceRequest
- Inherits:
-
Object
- Object
- Clerk::Models::Components::AdjustCreditBalanceRequest
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/adjustcreditbalancerequest.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(amount:, action:, idempotency_key:, currency: nil, note: nil) ⇒ AdjustCreditBalanceRequest
constructor
A new instance of AdjustCreditBalanceRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(amount:, action:, idempotency_key:, currency: nil, note: nil) ⇒ AdjustCreditBalanceRequest
Returns a new instance of AdjustCreditBalanceRequest.
27 28 29 30 31 32 33 |
# File 'lib/clerk/models/components/adjustcreditbalancerequest.rb', line 27 def initialize(amount:, action:, idempotency_key:, currency: nil, note: nil) @amount = amount @action = action @idempotency_key = idempotency_key @currency = currency @note = note end |
Instance Method Details
#==(other) ⇒ Object
36 37 38 39 40 41 42 43 44 |
# File 'lib/clerk/models/components/adjustcreditbalancerequest.rb', line 36 def ==(other) return false unless other.is_a? self.class return false unless @amount == other.amount return false unless @action == other.action return false unless @idempotency_key == other.idempotency_key return false unless @currency == other.currency return false unless @note == other.note true end |