Class: Etna::Clients::Metis::TailResponse
- Defined in:
- lib/etna/clients/metis/models.rb
Instance Attribute Summary collapse
-
#bucket_name ⇒ Object
readonly
Returns the value of attribute bucket_name.
-
#parents ⇒ Object
readonly
Returns the value of attribute parents.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
Attributes inherited from Response
Instance Method Summary collapse
- #files ⇒ Object
- #folders ⇒ Object
-
#initialize(project_name, bucket_name, raw = {}) ⇒ TailResponse
constructor
A new instance of TailResponse.
Methods inherited from Response
Constructor Details
#initialize(project_name, bucket_name, raw = {}) ⇒ TailResponse
Returns a new instance of TailResponse.
289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 |
# File 'lib/etna/clients/metis/models.rb', line 289 def initialize(project_name, bucket_name, raw = {}) super(raw) @paths = {} @parents = {} @project_name = project_name @bucket_name = bucket_name @nodes = [] raw.each do |raw_node| node = TailNode.new(self, raw_node) if node.parent? @parents[node.id] = node else @nodes.push(node) end end end |
Instance Attribute Details
#bucket_name ⇒ Object (readonly)
Returns the value of attribute bucket_name.
286 287 288 |
# File 'lib/etna/clients/metis/models.rb', line 286 def bucket_name @bucket_name end |
#parents ⇒ Object (readonly)
Returns the value of attribute parents.
286 287 288 |
# File 'lib/etna/clients/metis/models.rb', line 286 def parents @parents end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
286 287 288 |
# File 'lib/etna/clients/metis/models.rb', line 286 def paths @paths end |
#project_name ⇒ Object (readonly)
Returns the value of attribute project_name.
286 287 288 |
# File 'lib/etna/clients/metis/models.rb', line 286 def project_name @project_name end |