Class: SOAP::Mapping::SchemaDefinition
- Defined in:
- lib/soap/mapping/mapping.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#class_for ⇒ Object
readonly
Returns the value of attribute class_for.
-
#elements ⇒ Object
readonly
Returns the value of attribute elements.
-
#elename ⇒ Object
readonly
Returns the value of attribute elename.
-
#qualified ⇒ Object
readonly
Returns the value of attribute qualified.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #choice? ⇒ Boolean
- #have_any? ⇒ Boolean
-
#initialize(class_for, elename, type, qualified) ⇒ SchemaDefinition
constructor
A new instance of SchemaDefinition.
- #set_any ⇒ Object
- #set_choice ⇒ Object
Constructor Details
#initialize(class_for, elename, type, qualified) ⇒ SchemaDefinition
Returns a new instance of SchemaDefinition.
487 488 489 490 491 492 493 494 495 496 |
# File 'lib/soap/mapping/mapping.rb', line 487 def initialize(class_for, elename, type, qualified) @class_for = class_for @elename = elename @type = type @qualified = qualified @elements = [] @attributes = nil @choice = false @any = false end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes.
485 486 487 |
# File 'lib/soap/mapping/mapping.rb', line 485 def attributes @attributes end |
#class_for ⇒ Object (readonly)
Returns the value of attribute class_for.
482 483 484 |
# File 'lib/soap/mapping/mapping.rb', line 482 def class_for @class_for end |
#elements ⇒ Object (readonly)
Returns the value of attribute elements.
484 485 486 |
# File 'lib/soap/mapping/mapping.rb', line 484 def elements @elements end |
#elename ⇒ Object (readonly)
Returns the value of attribute elename.
483 484 485 |
# File 'lib/soap/mapping/mapping.rb', line 483 def elename @elename end |
#qualified ⇒ Object (readonly)
Returns the value of attribute qualified.
484 485 486 |
# File 'lib/soap/mapping/mapping.rb', line 484 def qualified @qualified end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
483 484 485 |
# File 'lib/soap/mapping/mapping.rb', line 483 def type @type end |
Instance Method Details
#choice? ⇒ Boolean
498 499 500 |
# File 'lib/soap/mapping/mapping.rb', line 498 def choice? @choice end |
#have_any? ⇒ Boolean
502 503 504 |
# File 'lib/soap/mapping/mapping.rb', line 502 def have_any? @any end |
#set_any ⇒ Object
510 511 512 |
# File 'lib/soap/mapping/mapping.rb', line 510 def set_any @any = true end |
#set_choice ⇒ Object
506 507 508 |
# File 'lib/soap/mapping/mapping.rb', line 506 def set_choice @choice = true end |