Class: Quickbooks::Model::BaseReference
- Defined in:
- lib/quickbooks/model/base_reference.rb
Instance Method Summary collapse
-
#initialize(value = nil, attributes = {}) ⇒ BaseReference
constructor
A new instance of BaseReference.
- #to_i ⇒ Object
- #to_s ⇒ Object
Methods inherited from BaseModel
#as_json, attribute_names, #attributes, attrs_with_types, #inspect, inspect, reference_attrs, reference_setters, resource_for_collection, resource_for_singular, to_xml_big_decimal, #to_xml_inject_ns, #to_xml_ns
Methods included from Validator
Methods included from Definition
included, #is_name_list_entity?, #is_transaction_entity?
Constructor Details
#initialize(value = nil, attributes = {}) ⇒ BaseReference
Returns a new instance of BaseReference.
9 10 11 12 |
# File 'lib/quickbooks/model/base_reference.rb', line 9 def initialize(value=nil, attributes={}) self.value = value attributes.each {|key, value| public_send("#{key}=", value) } end |
Instance Method Details
#to_i ⇒ Object
14 15 16 |
# File 'lib/quickbooks/model/base_reference.rb', line 14 def to_i self.value.to_i end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/quickbooks/model/base_reference.rb', line 18 def to_s self.value.to_s end |