Class: Etna::Clients::Metis::Folders

Inherits:
Object
  • Object
show all
Defined in:
lib/etna/clients/metis/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw = {}) ⇒ Folders

Returns a new instance of Folders.



192
193
194
# File 'lib/etna/clients/metis/models.rb', line 192

def initialize(raw = {})
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



190
191
192
# File 'lib/etna/clients/metis/models.rb', line 190

def raw
  @raw
end

Instance Method Details

#allObject



196
197
198
# File 'lib/etna/clients/metis/models.rb', line 196

def all
  raw.map { |folder| Folder.new(folder) }
end