Class: Etna::Clients::Metis::Folder

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 = {}) ⇒ 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

#rawObject (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_nameObject



353
354
355
# File 'lib/etna/clients/metis/models.rb', line 353

def bucket_name
  raw[:bucket_name]
end

#folder_nameObject



349
350
351
# File 'lib/etna/clients/metis/models.rb', line 349

def folder_name
  raw[:folder_name]
end

#folder_pathObject



345
346
347
# File 'lib/etna/clients/metis/models.rb', line 345

def folder_path
  raw[:folder_path]
end

#idObject



366
367
368
# File 'lib/etna/clients/metis/models.rb', line 366

def id
  raw[:id]
end

#project_nameObject



357
358
359
# File 'lib/etna/clients/metis/models.rb', line 357

def project_name
  raw[:project_name]
end

#updated_atObject



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