Class: Clerk::Models::Components::Group
- Inherits:
-
Object
- Object
- Clerk::Models::Components::Group
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/group.rb
Overview
A statement group.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, timestamp:, items:) ⇒ Group
constructor
A new instance of Group.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, timestamp:, items:) ⇒ Group
Returns a new instance of Group.
23 24 25 26 27 |
# File 'lib/clerk/models/components/group.rb', line 23 def initialize(object:, timestamp:, items:) @object = object @timestamp = @items = items end |
Instance Method Details
#==(other) ⇒ Object
30 31 32 33 34 35 36 |
# File 'lib/clerk/models/components/group.rb', line 30 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @timestamp == other. return false unless @items == other.items true end |