Class: LunaPark::Entities::Simple
- Inherits:
-
Object
- Object
- LunaPark::Entities::Simple
- Extended by:
- LunaPark::Extensions::Wrappable
- Includes:
- LunaPark::Extensions::Attributable
- Defined in:
- lib/luna_park/entities/simple.rb
Overview
add description
Direct Known Subclasses
Instance Method Summary collapse
- #==(_other) ⇒ Object abstract
- #eql?(other) ⇒ Boolean
-
#initialize(attrs = {}) ⇒ Simple
constructor
A new instance of Simple.
- #serialize ⇒ Object
- #to_h ⇒ Object abstract
Methods included from LunaPark::Extensions::Wrappable
Constructor Details
#initialize(attrs = {}) ⇒ Simple
Returns a new instance of Simple.
14 15 16 |
# File 'lib/luna_park/entities/simple.rb', line 14 def initialize(attrs = {}) set_attributes(attrs) end |
Instance Method Details
#==(_other) ⇒ Object
This method is abstract.
23 24 25 |
# File 'lib/luna_park/entities/simple.rb', line 23 def ==(_other) raise Errors::AbstractMethod end |
#eql?(other) ⇒ Boolean
18 19 20 |
# File 'lib/luna_park/entities/simple.rb', line 18 def eql?(other) other.is_a?(self.class) && self == other end |
#serialize ⇒ Object
27 28 29 |
# File 'lib/luna_park/entities/simple.rb', line 27 def serialize to_h end |
#to_h ⇒ Object
This method is abstract.
32 33 34 |
# File 'lib/luna_park/entities/simple.rb', line 32 def to_h raise Errors::AbstractMethod end |