Class: Quickeebooks::Windows::Model::Id

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

Constant Summary collapse

DOMAIN =
"QB"

Instance Method Summary collapse

Methods included from Logging

#log

Constructor Details

#initialize(value = nil, suppress_domain_attribute = false) ⇒ Id

Returns a new instance of Id.



14
15
16
17
18
19
# File 'lib/quickeebooks/windows/model/id.rb', line 14

def initialize(value = nil, suppress_domain_attribute = false)
  unless suppress_domain_attribute
    self.idDomain = DOMAIN
  end
  self.value = value
end

Instance Method Details

#to_iObject



21
22
23
# File 'lib/quickeebooks/windows/model/id.rb', line 21

def to_i
  self.value.to_i
end

#to_sObject



25
26
27
# File 'lib/quickeebooks/windows/model/id.rb', line 25

def to_s
  self.value.to_s
end