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.



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

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.



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

def elename
  @elename
end

#mapped_classObject (readonly)

Returns the value of attribute mapped_class.



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

def mapped_class
  @mapped_class
end

#maxoccursObject (readonly)

Returns the value of attribute maxoccurs.



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

def maxoccurs
  @maxoccurs
end

#minoccursObject (readonly)

Returns the value of attribute minoccurs.



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

def minoccurs
  @minoccurs
end

#varnameObject (readonly)

Returns the value of attribute varname.



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

def varname
  @varname
end

Instance Method Details

#as_any?Boolean

Returns:

  • (Boolean)


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

def as_any?
  @as_any
end

#as_array?Boolean

Returns:

  • (Boolean)


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

def as_array?
  @as_array
end