Class: OTX::Type::Base
- Inherits:
-
Object
- Object
- OTX::Type::Base
- Defined in:
- lib/otx_ruby/base.rb
Overview
Base Class for types
Direct Known Subclasses
Event, Indicator::Activity, Indicator::Data, Indicator::IP::Reputation, Indicators, Pulse
Instance Attribute Summary collapse
-
#created ⇒ DateTime
Date and Time stamp for the creation of the records.
-
#id ⇒ Object
Returns the value of attribute id.
-
#modified ⇒ DateTime
Date and Time stamp for the last modification of the records.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
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
#created ⇒ DateTime
Date and Time stamp for the creation of the records
57 58 59 |
# File 'lib/otx_ruby/base.rb', line 57 def created @created end |
#id ⇒ Object
Returns the value of attribute id.
59 60 61 |
# File 'lib/otx_ruby/base.rb', line 59 def id @id end |
#modified ⇒ DateTime
Date and Time stamp for the last modification of the records
57 58 59 |
# File 'lib/otx_ruby/base.rb', line 57 def modified @modified end |