Class: Project
- Inherits:
-
Object
- Object
- Project
- Defined in:
- lib/ft_42.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
- #exam ⇒ Object
- #id ⇒ Object
-
#initialize(project_response) ⇒ Project
constructor
A new instance of Project.
- #name ⇒ Object
- #slug ⇒ Object
- #tier ⇒ Object
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
#project ⇒ Object (readonly)
Returns the value of attribute project.
177 178 179 |
# File 'lib/ft_42.rb', line 177 def project @project end |
Instance Method Details
#exam ⇒ Object
199 200 201 |
# File 'lib/ft_42.rb', line 199 def exam project["exam"] end |
#id ⇒ Object
183 184 185 |
# File 'lib/ft_42.rb', line 183 def id project["id"] end |
#name ⇒ Object
187 188 189 |
# File 'lib/ft_42.rb', line 187 def name project["name"] end |
#slug ⇒ Object
191 192 193 |
# File 'lib/ft_42.rb', line 191 def slug project["slug"] end |
#tier ⇒ Object
195 196 197 |
# File 'lib/ft_42.rb', line 195 def tier project["tier"] end |