Class: Camp3::Project

Inherits:
Resource show all
Defined in:
lib/camp3/resources/project.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#[], #can_be_commented?, #inspect, #to_hash

Constructor Details

#initialize(hash) ⇒ Project

Returns a new instance of Project.



6
7
8
9
10
11
12
# File 'lib/camp3/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 Camp3::Resource

Instance Attribute Details

#message_boardObject (readonly)

Returns the value of attribute message_board.



4
5
6
# File 'lib/camp3/resources/project.rb', line 4

def message_board
  @message_board
end

#scheduleObject (readonly)

Returns the value of attribute schedule.



4
5
6
# File 'lib/camp3/resources/project.rb', line 4

def schedule
  @schedule
end

#todosetObject (readonly)

Returns the value of attribute todoset.



4
5
6
# File 'lib/camp3/resources/project.rb', line 4

def todoset
  @todoset
end