class Xapi::SubStatement

Attributes

object_type[RW]

Public Class Methods

new(options={}, &block) click to toggle source
Calls superclass method Xapi::Statements::StatementsBase::new
# File lib/xapi/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
# File lib/xapi/sub_statement.rb, line 12
def serialize(version)
  node = super(version)
  node['objectType'] = object_type
  node
end