Class: Quickeebooks::Online::Model::Id

Inherits:
IntuitType
  • Object
show all
Defined in:
lib/quickeebooks/online/model/id.rb

Constant Summary collapse

DOMAIN =
"QBO"

Instance Method Summary collapse

Methods inherited from IntuitType

resource_for_collection, resource_for_singular

Methods included from Logging

#log

Constructor Details

#initialize(value = nil) ⇒ Id

Returns a new instance of Id.



15
16
17
# File 'lib/quickeebooks/online/model/id.rb', line 15

def initialize(value = nil)
  self.value = value
end

Instance Method Details

#to_iObject



19
20
21
# File 'lib/quickeebooks/online/model/id.rb', line 19

def to_i
  self.value.to_i
end

#to_sObject



23
24
25
# File 'lib/quickeebooks/online/model/id.rb', line 23

def to_s
  self.value.to_s
end