Class: Etna::Clients::Janus::GetProjectsResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/etna/clients/janus/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw = '') ⇒ GetProjectsResponse

Returns a new instance of GetProjectsResponse.



87
88
89
# File 'lib/etna/clients/janus/models.rb', line 87

def initialize(raw = '')
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



85
86
87
# File 'lib/etna/clients/janus/models.rb', line 85

def raw
  @raw
end

Instance Method Details

#projectsObject



91
92
93
94
95
# File 'lib/etna/clients/janus/models.rb', line 91

def projects
  @raw[:projects].map do |project|
    Project.new(project)
  end
end