Class: Ebay::Schema::TextNode
- Defined in:
- lib/ebay/schema/mapper/node.rb
Direct Known Subclasses
Constant Summary
Constants included from Inflections
Inflections::DOWNCASE_TOKENS, Inflections::NAME_MAPPINGS, Inflections::UPCASE_TOKENS
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from Node
#accessor_name, #declaration, #initialize, #optional?, #xml_mapping_node_type
Methods included from Inflections
#downcase_first_character, #ebay_camelize, #ebay_underscore, #underscore, #upcase_first_character
Constructor Details
This class inherits a constructor from Ebay::Schema::Node
Instance Method Details
#to_s ⇒ Object
54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/ebay/schema/mapper/node.rb', line 54 def to_s result = "#{declaration}, " result << (@field.nil? ? "'#{@name}'" : "'#{@field}'") result << ', :optional => true' if optional? if @name == 'Type' result += "\ndef type\n @type\nend\n ENDMETHOD\n end\n result\nend\n" |