Class: OTX::Type::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/otx_ruby/base.rb

Overview

Base Class for types

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Base

Returns a new instance of Base.



69
70
71
72
73
# File 'lib/otx_ruby/base.rb', line 69

def initialize(attributes={})
  attributes.each do |key, value|
    send("#{key}=", value)
  end
end

Instance Attribute Details

#createdDateTime

Date and Time stamp for the creation of the records

Returns:

  • (DateTime)

    the current value of created



57
58
59
# File 'lib/otx_ruby/base.rb', line 57

def created
  @created
end

#idObject

Returns the value of attribute id.



59
60
61
# File 'lib/otx_ruby/base.rb', line 59

def id
  @id
end

#modifiedDateTime

Date and Time stamp for the last modification of the records

Returns:

  • (DateTime)

    the current value of modified



57
58
59
# File 'lib/otx_ruby/base.rb', line 57

def modified
  @modified
end