Class: Sem4rSoap::MetaSoapAttribute
- Inherits:
-
Object
- Object
- Sem4rSoap::MetaSoapAttribute
- Defined in:
- lib/sem4r_soap/soap_attributes.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#xpath ⇒ Object
readonly
Returns the value of attribute xpath.
Instance Method Summary collapse
- #enum? ⇒ Boolean
-
#initialize(name, is_enum, xpath = nil) ⇒ MetaSoapAttribute
constructor
A new instance of MetaSoapAttribute.
Constructor Details
#initialize(name, is_enum, xpath = nil) ⇒ MetaSoapAttribute
Returns a new instance of MetaSoapAttribute.
29 30 31 32 33 34 35 36 |
# File 'lib/sem4r_soap/soap_attributes.rb', line 29 def initialize(name, is_enum, xpath = nil) @name, @is_enum = name.to_sym, is_enum if xpath @xpath = xpath else @xpath = name.to_s.camel_case end end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
28 29 30 |
# File 'lib/sem4r_soap/soap_attributes.rb', line 28 def name @name end |
#xpath ⇒ Object (readonly)
Returns the value of attribute xpath.
28 29 30 |
# File 'lib/sem4r_soap/soap_attributes.rb', line 28 def xpath @xpath end |
Instance Method Details
#enum? ⇒ Boolean
38 39 40 |
# File 'lib/sem4r_soap/soap_attributes.rb', line 38 def enum? @is_enum end |