Class: Quickbooks::Model::BaseReference
- Defined in:
- lib/quickbooks/model/base_reference.rb
Instance Method Summary collapse
-
#initialize(value = nil) ⇒ BaseReference
constructor
A new instance of BaseReference.
- #to_i ⇒ Object
- #to_s ⇒ Object
Methods inherited from BaseModel
attribute_names, #attributes, attrs_with_types, #ensure_line_items_initialization, #inspect, inspect, reference_setters, resource_for_collection, resource_for_singular, to_xml_big_decimal, #to_xml_inject_ns, #to_xml_ns
Methods included from Validator
Constructor Details
#initialize(value = nil) ⇒ BaseReference
Returns a new instance of BaseReference.
8 9 10 |
# File 'lib/quickbooks/model/base_reference.rb', line 8 def initialize(value = nil) self.value = value end |
Instance Method Details
#to_i ⇒ Object
12 13 14 |
# File 'lib/quickbooks/model/base_reference.rb', line 12 def to_i self.value.to_i end |
#to_s ⇒ Object
16 17 18 |
# File 'lib/quickbooks/model/base_reference.rb', line 16 def to_s self.value.to_s end |