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.



212
213
214
# File 'lib/etna/clients/metis/models.rb', line 212

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

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



210
211
212
# File 'lib/etna/clients/metis/models.rb', line 210

def raw
  @raw
end

Instance Method Details

#allObject



216
217
218
# File 'lib/etna/clients/metis/models.rb', line 216

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