Class: ActiveApi::ComplexType
- Inherits:
-
Object
- Object
- ActiveApi::ComplexType
- Includes:
- Builder, HasDefinition
- Defined in:
- lib/active_api/complex_type.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#object ⇒ Object
readonly
Returns the value of attribute object.
-
#parents ⇒ Object
readonly
Returns the value of attribute parents.
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
Instance Method Summary collapse
-
#initialize(object, options = {}) ⇒ ComplexType
constructor
A new instance of ComplexType.
Methods included from HasDefinition
Methods included from Builder
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, = {}) @object = object @node = [:node] @parents = [:parents] || {} @parents[node.to_s.singularize.to_sym] = object @schema = [:schema] end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
6 7 8 |
# File 'lib/active_api/complex_type.rb', line 6 def node @node end |
#object ⇒ Object (readonly)
Returns the value of attribute object.
6 7 8 |
# File 'lib/active_api/complex_type.rb', line 6 def object @object end |
#parents ⇒ Object (readonly)
Returns the value of attribute parents.
6 7 8 |
# File 'lib/active_api/complex_type.rb', line 6 def parents @parents end |
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
6 7 8 |
# File 'lib/active_api/complex_type.rb', line 6 def schema @schema end |