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.



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

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

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



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

def raw
  @raw
end

Instance Method Details

#allObject



201
202
203
# File 'lib/etna/clients/metis/models.rb', line 201

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