Class: OTX::Type::Base

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

Overview

Base Class for types

Direct Known Subclasses

Event, Indicators, Pulse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Base

Returns a new instance of Base



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

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

#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