Class: Etna::Clients::Metis::Files
- Inherits:
-
Object
- Object
- Etna::Clients::Metis::Files
- Defined in:
- lib/etna/clients/metis/models.rb
Instance Attribute Summary collapse
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
- #all ⇒ Object
-
#initialize(raw = {}) ⇒ Files
constructor
A new instance of Files.
Constructor Details
#initialize(raw = {}) ⇒ Files
Returns a new instance of Files.
180 181 182 |
# File 'lib/etna/clients/metis/models.rb', line 180 def initialize(raw = {}) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
178 179 180 |
# File 'lib/etna/clients/metis/models.rb', line 178 def raw @raw end |
Instance Method Details
#all ⇒ Object
184 185 186 |
# File 'lib/etna/clients/metis/models.rb', line 184 def all raw.map { |file| File.new(file) } end |