Class: Caliper::Entities::Response::Response
- Inherits:
-
EntityBase
- Object
- Entity
- EntityBase
- Caliper::Entities::Response::Response
- Includes:
- Generatable
- Defined in:
- lib/caliper/entities/response/response.rb
Direct Known Subclasses
FillinBlankResponse, MultipleChoiceResponse, MultipleResponseResponse, SelectTextResponse, TrueFalseResponse
Instance Attribute Summary collapse
-
#actor ⇒ Object
Returns the value of attribute actor.
-
#assignable ⇒ Object
Returns the value of attribute assignable.
-
#attempt ⇒ Object
Returns the value of attribute attempt.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#endedAtTime ⇒ Object
Returns the value of attribute endedAtTime.
-
#startedAtTime ⇒ Object
Returns the value of attribute startedAtTime.
Attributes inherited from EntityBase
#dateCreated, #dateModified, #description, #extensions, #name
Attributes inherited from Entity
Instance Method Summary collapse
-
#initialize ⇒ Response
constructor
A new instance of Response.
Methods included from Jsonable
#eql?, #from_json, included, #to_json
Constructor Details
#initialize ⇒ Response
Returns a new instance of Response.
33 34 35 36 37 38 39 |
# File 'lib/caliper/entities/response/response.rb', line 33 def initialize super @type = Caliper::Entities::EntityType::RESPONSE @startedAtTime = nil @endedAtTime = nil @duration = nil end |
Instance Attribute Details
#actor ⇒ Object
Returns the value of attribute actor.
31 32 33 |
# File 'lib/caliper/entities/response/response.rb', line 31 def actor @actor end |
#assignable ⇒ Object
Returns the value of attribute assignable.
31 32 33 |
# File 'lib/caliper/entities/response/response.rb', line 31 def assignable @assignable end |
#attempt ⇒ Object
Returns the value of attribute attempt.
31 32 33 |
# File 'lib/caliper/entities/response/response.rb', line 31 def attempt @attempt end |
#duration ⇒ Object
Returns the value of attribute duration.
31 32 33 |
# File 'lib/caliper/entities/response/response.rb', line 31 def duration @duration end |
#endedAtTime ⇒ Object
Returns the value of attribute endedAtTime.
31 32 33 |
# File 'lib/caliper/entities/response/response.rb', line 31 def endedAtTime @endedAtTime end |
#startedAtTime ⇒ Object
Returns the value of attribute startedAtTime.
31 32 33 |
# File 'lib/caliper/entities/response/response.rb', line 31 def startedAtTime @startedAtTime end |