class Sire::Entity
Public Class Methods
inherited(child)
click to toggle source
# File lib/sire/entity.rb, line 8 def inherited(child) EntityBuilder.nestables << child end
new(arg = {})
click to toggle source
Calls superclass method
# File lib/sire/entity.rb, line 12 def new(arg = {}) arg.is_a?(self) ? arg : super end
new(hash)
click to toggle source
Calls superclass method
# File lib/sire/entity.rb, line 17 def initialize(hash) super(EntityBuilder.build(hash)) end