Class: Project

Inherits:
Object
  • Object
show all
Defined in:
lib/ft_42.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_response) ⇒ Project

Returns a new instance of Project.



179
180
181
# File 'lib/ft_42.rb', line 179

def initialize(project_response)
  @project = project_response
end

Instance Attribute Details

#projectObject (readonly)

Returns the value of attribute project.



177
178
179
# File 'lib/ft_42.rb', line 177

def project
  @project
end

Instance Method Details

#examObject



199
200
201
# File 'lib/ft_42.rb', line 199

def exam
  project["exam"]
end

#idObject



183
184
185
# File 'lib/ft_42.rb', line 183

def id
  project["id"]
end

#nameObject



187
188
189
# File 'lib/ft_42.rb', line 187

def name
  project["name"]
end

#slugObject



191
192
193
# File 'lib/ft_42.rb', line 191

def slug
  project["slug"]
end

#tierObject



195
196
197
# File 'lib/ft_42.rb', line 195

def tier
  project["tier"]
end