Class: Etna::Clients::Metis::Folder
- Inherits:
-
Object
- Object
- Etna::Clients::Metis::Folder
- 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
- #bucket_name ⇒ Object
- #folder_name ⇒ Object
- #folder_path ⇒ Object
- #id ⇒ Object
-
#initialize(raw = {}) ⇒ Folder
constructor
A new instance of Folder.
- #project_name ⇒ Object
- #updated_at ⇒ Object
Constructor Details
#initialize(raw = {}) ⇒ Folder
Returns a new instance of Folder.
341 342 343 |
# File 'lib/etna/clients/metis/models.rb', line 341 def initialize(raw = {}) @raw = raw end |
Instance Attribute Details
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
339 340 341 |
# File 'lib/etna/clients/metis/models.rb', line 339 def raw @raw end |
Instance Method Details
#bucket_name ⇒ Object
353 354 355 |
# File 'lib/etna/clients/metis/models.rb', line 353 def bucket_name raw[:bucket_name] end |
#folder_name ⇒ Object
349 350 351 |
# File 'lib/etna/clients/metis/models.rb', line 349 def folder_name raw[:folder_name] end |
#folder_path ⇒ Object
345 346 347 |
# File 'lib/etna/clients/metis/models.rb', line 345 def folder_path raw[:folder_path] end |
#id ⇒ Object
366 367 368 |
# File 'lib/etna/clients/metis/models.rb', line 366 def id raw[:id] end |
#project_name ⇒ Object
357 358 359 |
# File 'lib/etna/clients/metis/models.rb', line 357 def project_name raw[:project_name] end |
#updated_at ⇒ Object
361 362 363 364 |
# File 'lib/etna/clients/metis/models.rb', line 361 def updated_at time = raw[:updated_at] time.nil? ? nil : Time.parse(time) end |