Class: Clerk::Models::Components::BillingStatement
- Inherits:
-
Object
- Object
- Clerk::Models::Components::BillingStatement
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/billingstatement.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, instance_id:, timestamp:, payer:, status:, totals:, groups:) ⇒ BillingStatement
constructor
A new instance of BillingStatement.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, instance_id:, timestamp:, payer:, status:, totals:, groups:) ⇒ BillingStatement
Returns a new instance of BillingStatement.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/clerk/models/components/billingstatement.rb', line 33 def initialize(object:, id:, instance_id:, timestamp:, payer:, status:, totals:, groups:) @object = object @id = id @instance_id = instance_id = @payer = payer @status = status @totals = totals @groups = groups end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/clerk/models/components/billingstatement.rb', line 45 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @id == other.id return false unless @instance_id == other.instance_id return false unless == other. return false unless @payer == other.payer return false unless @status == other.status return false unless @totals == other.totals return false unless @groups == other.groups true end |