Class: FakeChargify::ProductFamily
- Inherits:
-
Object
- Object
- FakeChargify::ProductFamily
- Defined in:
- lib/fake_chargify/product_family.rb
Instance Attribute Summary collapse
-
#accounting_code ⇒ Object
Returns the value of attribute accounting_code.
-
#handle ⇒ Object
Returns the value of attribute handle.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#accounting_code ⇒ Object
Returns the value of attribute accounting_code.
5 6 7 |
# File 'lib/fake_chargify/product_family.rb', line 5 def accounting_code @accounting_code end |
#handle ⇒ Object
Returns the value of attribute handle.
5 6 7 |
# File 'lib/fake_chargify/product_family.rb', line 5 def handle @handle end |
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/fake_chargify/product_family.rb', line 5 def name @name end |
Instance Method Details
#to_xml ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/fake_chargify/product_family.rb', line 7 def to_xml builder = Nokogiri::XML::Builder.new do |xml| xml.product_family { xml.accounting_code accounting_code xml.handle handle xml.name name } end builder.to_xml end |