Class: TwentyFourTru::Response

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#assignment_idObject

Returns the value of attribute assignment_id.



18
19
20
# File 'lib/TwentyFourTru/response.rb', line 18

def assignment_id
  @assignment_id
end

#response_idObject

Returns the value of attribute response_id.



18
19
20
# File 'lib/TwentyFourTru/response.rb', line 18

def response_id
  @response_id
end

Class Method Details

.all(assignment_id, options = {}) ⇒ Object



5
6
7
# File 'lib/TwentyFourTru/response.rb', line 5

def all(assignment_id, options={})
  Client.get("/assignments/#{assignment_id}/responses")
end

.create(assignment_id, options) ⇒ Object



13
14
15
# File 'lib/TwentyFourTru/response.rb', line 13

def create(assignment_id, options)
  Client.post("/assignments/#{assignment_id}/responses", options)
end

.find(response_id) ⇒ Object



9
10
11
# File 'lib/TwentyFourTru/response.rb', line 9

def find(response_id)
  Client.get("/responses/#{response_id}")
end