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.



95
96
97
# File 'lib/etna/clients/janus/models.rb', line 95

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

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



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

def raw
  @raw
end

Instance Method Details

#projectsObject



99
100
101
102
103
# File 'lib/etna/clients/janus/models.rb', line 99

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