Class: Camper::Project
- Defined in:
- lib/camper/resources/project.rb
Instance Attribute Summary collapse
-
#message_board ⇒ Object
readonly
Returns the value of attribute message_board.
-
#schedule ⇒ Object
readonly
Returns the value of attribute schedule.
-
#todoset ⇒ Object
readonly
Returns the value of attribute todoset.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Project
constructor
A new instance of Project.
Methods inherited from Resource
#[], #can_be_commented?, create, #inspect, #to_hash
Constructor Details
#initialize(hash) ⇒ Project
Returns a new instance of Project.
6 7 8 9 10 11 12 |
# File 'lib/camper/resources/project.rb', line 6 def initialize(hash) super @message_board = dock.find { |payload| payload.name == 'message_board' } @todoset = dock.find { |payload| payload.name == 'todoset' } @schedule = dock.find { |payload| payload.name == 'schedule' } end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Camper::Resource
Instance Attribute Details
#message_board ⇒ Object (readonly)
Returns the value of attribute message_board.
4 5 6 |
# File 'lib/camper/resources/project.rb', line 4 def @message_board end |
#schedule ⇒ Object (readonly)
Returns the value of attribute schedule.
4 5 6 |
# File 'lib/camper/resources/project.rb', line 4 def schedule @schedule end |
#todoset ⇒ Object (readonly)
Returns the value of attribute todoset.
4 5 6 |
# File 'lib/camper/resources/project.rb', line 4 def todoset @todoset end |