Class: ActiveApi::ComplexType

Inherits:
Object
  • Object
show all
Includes:
Builder, HasDefinition
Defined in:
lib/active_api/complex_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HasDefinition

#definition

Methods included from Builder

#build_xml

Constructor Details

#initialize(object, options = {}) ⇒ ComplexType

Returns a new instance of ComplexType.



8
9
10
11
12
13
14
# File 'lib/active_api/complex_type.rb', line 8

def initialize(object, options = {})
  @object = object
  @node   = options[:node]
  @parents = options[:parents] || {}
  @parents[node.to_s.singularize.to_sym] = object
  @schema = options[:schema]
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



6
7
8
# File 'lib/active_api/complex_type.rb', line 6

def node
  @node
end

#objectObject (readonly)

Returns the value of attribute object.



6
7
8
# File 'lib/active_api/complex_type.rb', line 6

def object
  @object
end

#parentsObject (readonly)

Returns the value of attribute parents.



6
7
8
# File 'lib/active_api/complex_type.rb', line 6

def parents
  @parents
end

#schemaObject (readonly)

Returns the value of attribute schema.



6
7
8
# File 'lib/active_api/complex_type.rb', line 6

def schema
  @schema
end