Class: Sem4rSoap::MetaSoapAttribute

Inherits:
Object
  • Object
show all
Defined in:
lib/sem4r_soap/soap_attributes.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



28
29
30
# File 'lib/sem4r_soap/soap_attributes.rb', line 28

def name
  @name
end

#xpathObject (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

Returns:

  • (Boolean)


38
39
40
# File 'lib/sem4r_soap/soap_attributes.rb', line 38

def enum?
  @is_enum
end