Class: Utils::UndefinedParam

Inherits:
Object
  • Object
show all
Defined in:
lib/roundtrip_xml/utils.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, original = nil) ⇒ UndefinedParam

Returns a new instance of UndefinedParam.



13
14
15
16
# File 'lib/roundtrip_xml/utils.rb', line 13

def initialize(name, original = nil)
  @name = name
  @original = original
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



12
13
14
# File 'lib/roundtrip_xml/utils.rb', line 12

def name
  @name
end

#originalObject (readonly)

Returns the value of attribute original.



12
13
14
# File 'lib/roundtrip_xml/utils.rb', line 12

def original
  @original
end

Instance Method Details

#to_sObject



18
19
20
# File 'lib/roundtrip_xml/utils.rb', line 18

def to_s
  "#{Utils::UNDEFINED_PARAM}:#{@name}"
end