Class: TinCanApi::SubStatement
- Inherits:
-
TinCanApi::Statements::StatementsBase
- Object
- TinCanApi::Statements::StatementsBase
- TinCanApi::SubStatement
- Defined in:
- lib/tin_can_api/sub_statement.rb
Instance Attribute Summary collapse
-
#object_type ⇒ Object
Returns the value of attribute object_type.
Attributes inherited from TinCanApi::Statements::StatementsBase
#actor, #attachments, #context, #object, #result, #timestamp, #verb, #voided
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ SubStatement
constructor
A new instance of SubStatement.
- #serialize(version) ⇒ Object
Constructor Details
#initialize(options = {}, &block) ⇒ SubStatement
Returns a new instance of SubStatement.
7 8 9 10 |
# File 'lib/tin_can_api/sub_statement.rb', line 7 def initialize(={}, &block) @object_type = 'SubStatement' super(, &block) end |
Instance Attribute Details
#object_type ⇒ Object
Returns the value of attribute object_type.
5 6 7 |
# File 'lib/tin_can_api/sub_statement.rb', line 5 def object_type @object_type end |
Instance Method Details
#serialize(version) ⇒ Object
12 13 14 15 16 |
# File 'lib/tin_can_api/sub_statement.rb', line 12 def serialize(version) node = super(version) node['objectType'] = object_type node end |