Class: Barker::Entity
- Inherits:
-
Struct
- Object
- Struct
- Barker::Entity
- Includes:
- ActiveModel::Validations
- Defined in:
- lib/barker/entity.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.model_name ⇒ Object
6 7 8 |
# File 'lib/barker/entity.rb', line 6 def self.model_name ActiveModel::Name.new(self, nil, self.to_s) end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/barker/entity.rb', line 10 def ==(other) id == other.id end |