class WsdlMapper::Dom::Attribute

Attributes

containing_type[RW]
default[R]
documentation[RW]
fixed[R]
form[R]
name[R]
type[RW]
type_name[R]
use[R]

Public Class Methods

new(name, type_name, default: nil, use: nil, fixed: nil, form: nil) click to toggle source
# File lib/wsdl_mapper/dom/attribute.rb, line 16
def initialize(name, type_name, default: nil, use: nil, fixed: nil, form: nil)
  @name, @type_name = name, type_name
  @documentation = Documentation.new
  @default = default
  @use = use
  @fixed = fixed
  @form = form
end

Public Instance Methods

default?() click to toggle source
# File lib/wsdl_mapper/dom/attribute.rb, line 25
def default?
  !!@default
end
fixed?() click to toggle source
# File lib/wsdl_mapper/dom/attribute.rb, line 29
def fixed?
  !!@fixed
end
optional?() click to toggle source
# File lib/wsdl_mapper/dom/attribute.rb, line 33
def optional?
  @use == 'optional'
end
required?() click to toggle source
# File lib/wsdl_mapper/dom/attribute.rb, line 37
def required?
  @use == 'required'
end