Method: BooticClient::Entity#initialize
- Defined in:
- lib/bootic_client/entity.rb
#initialize(attrs, client, top = self) ⇒ Entity
Returns a new instance of Entity.
33 34 35 36 37 38 |
# File 'lib/bootic_client/entity.rb', line 33 def initialize(attrs, client, top = self) @attrs = attrs.kind_of?(Hash) ? attrs : {} @client, @top = client, top build! self.extend EnumerableEntity if iterable? end |