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.



271
272
273
# File 'lib/etna/clients/metis/models.rb', line 271

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

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



269
270
271
# File 'lib/etna/clients/metis/models.rb', line 269

def raw
  @raw
end

Instance Method Details

#allObject



275
276
277
# File 'lib/etna/clients/metis/models.rb', line 275

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