Class: SOAP::Mapping::SchemaElementDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/soap/mapping/schemadefinition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(varname, mapped_class, elename, minoccurs, maxoccurs, as_any, as_array) ⇒ SchemaElementDefinition

Returns a new instance of SchemaElementDefinition.


20
21
22
23
24
25
26
27
28
29
# File 'lib/soap/mapping/schemadefinition.rb', line 20

def initialize(varname, mapped_class, elename, minoccurs, maxoccurs,
    as_any, as_array)
  @varname = varname
  @mapped_class = mapped_class
  @elename = elename
  @minoccurs = minoccurs
  @maxoccurs = maxoccurs
  @as_any = as_any
  @as_array = as_array
end

Instance Attribute Details

#elenameObject (readonly)

Returns the value of attribute elename


18
19
20
# File 'lib/soap/mapping/schemadefinition.rb', line 18

def elename
  @elename
end

#mapped_classObject (readonly)

Returns the value of attribute mapped_class


18
19
20
# File 'lib/soap/mapping/schemadefinition.rb', line 18

def mapped_class
  @mapped_class
end

#maxoccursObject (readonly)

Returns the value of attribute maxoccurs


18
19
20
# File 'lib/soap/mapping/schemadefinition.rb', line 18

def maxoccurs
  @maxoccurs
end

#minoccursObject (readonly)

Returns the value of attribute minoccurs


18
19
20
# File 'lib/soap/mapping/schemadefinition.rb', line 18

def minoccurs
  @minoccurs
end

#varnameObject (readonly)

Returns the value of attribute varname


18
19
20
# File 'lib/soap/mapping/schemadefinition.rb', line 18

def varname
  @varname
end

Instance Method Details

#as_any?Boolean

Returns:

  • (Boolean)

31
32
33
# File 'lib/soap/mapping/schemadefinition.rb', line 31

def as_any?
  @as_any
end

#as_array?Boolean

Returns:

  • (Boolean)

35
36
37
# File 'lib/soap/mapping/schemadefinition.rb', line 35

def as_array?
  @as_array
end