Class: StackOne::Models::Shared::Actor
- Inherits:
-
Object
- Object
- StackOne::Models::Shared::Actor
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/stack_one/models/shared/actor.rb
Overview
The actor who made the change
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(id: nil, remote_id: nil) ⇒ Actor
constructor
A new instance of Actor.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(id: nil, remote_id: nil) ⇒ Actor
Returns a new instance of Actor.
21 22 23 24 |
# File 'lib/stack_one/models/shared/actor.rb', line 21 def initialize(id: nil, remote_id: nil) @id = id @remote_id = remote_id end |
Instance Method Details
#==(other) ⇒ Object
27 28 29 30 31 32 |
# File 'lib/stack_one/models/shared/actor.rb', line 27 def ==(other) return false unless other.is_a? self.class return false unless @id == other.id return false unless @remote_id == other.remote_id true end |