class LunaPark::Entities::Simple

add description

Public Class Methods

new(attrs = {}) click to toggle source
# File lib/luna_park/entities/simple.rb, line 14
def initialize(attrs = {})
  set_attributes(attrs)
end

Public Instance Methods

==(_other) click to toggle source

@abstract

# File lib/luna_park/entities/simple.rb, line 23
def ==(_other)
  raise Errors::AbstractMethod
end
eql?(other) click to toggle source
# File lib/luna_park/entities/simple.rb, line 18
def eql?(other)
  other.is_a?(self.class) && self == other
end
serialize() click to toggle source
# File lib/luna_park/entities/simple.rb, line 27
def serialize
  to_h
end
to_h() click to toggle source

@abstract

# File lib/luna_park/entities/simple.rb, line 32
def to_h
  raise Errors::AbstractMethod
end