Class: Ebay::Schema::ArrayNode
- Inherits:
-
Node
- Object
- Node
- Ebay::Schema::ArrayNode
- Defined in:
- lib/ebay/schema/mapper/node.rb
Constant Summary
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
- (Object) class_name
103 104 105 |
# File 'lib/ebay/schema/mapper/node.rb', line 103 def class_name clean_class_name(@type) end |
- (Object) to_s
107 108 109 110 111 |
# File 'lib/ebay/schema/mapper/node.rb', line 107 def to_s result = "#{declaration.pluralize}, '#{@name}', " result << "'#{@child}', " if @child result << ":class => #{class_name}, :default_value => []" end |