Class: LunaPark::Entities::Simple

Inherits:
Object
  • Object
show all
Extended by:
LunaPark::Extensions::Wrappable
Includes:
LunaPark::Extensions::Attributable
Defined in:
lib/luna_park/entities/simple.rb

Overview

add description

Direct Known Subclasses

Attributable

Instance Method Summary collapse

Methods included from LunaPark::Extensions::Wrappable

wrap

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

Returns:

  • (Boolean)


18
19
20
# File 'lib/luna_park/entities/simple.rb', line 18

def eql?(other)
  other.is_a?(self.class) && self == other
end

#serializeObject



27
28
29
# File 'lib/luna_park/entities/simple.rb', line 27

def serialize
  to_h
end

#to_hObject

This method is abstract.


32
33
34
# File 'lib/luna_park/entities/simple.rb', line 32

def to_h
  raise Errors::AbstractMethod
end