class TinCanApi::SubStatement
Attributes
object_type[RW]
Public Class Methods
new(options={}, &block)
click to toggle source
Calls superclass method
TinCanApi::Statements::StatementsBase::new
# File lib/tin_can_api/sub_statement.rb, line 7 def initialize(options={}, &block) @object_type = 'SubStatement' super(options, &block) end
Public Instance Methods
serialize(version)
click to toggle source
Calls superclass method
TinCanApi::Statements::StatementsBase#serialize
# File lib/tin_can_api/sub_statement.rb, line 12 def serialize(version) node = super(version) node['objectType'] = object_type node end