Method: BooticClient::Entity.wrap
- Defined in:
- lib/bootic_client/entity.rb
.wrap(obj) ⇒ Object
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/bootic_client/entity.rb', line 71 def self.wrap(obj) case obj when Hash OpenStruct.new(obj) when Array obj.map{|e| wrap(e)} else obj end end |