Class: OTX::Indicator::Activity
- Inherits:
-
Type::Base
- Object
- Type::Base
- OTX::Indicator::Activity
- Defined in:
- lib/otx_ruby/types/activity.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#data_key ⇒ Object
Returns the value of attribute data_key.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#file ⇒ Object
Returns the value of attribute file.
-
#first_date ⇒ Object
Returns the value of attribute first_date.
-
#last_date ⇒ Object
Returns the value of attribute last_date.
-
#md5 ⇒ Object
Returns the value of attribute md5.
-
#name ⇒ Object
Returns the value of attribute name.
-
#source ⇒ Object
Returns the value of attribute source.
-
#status ⇒ Object
Returns the value of attribute status.
-
#type ⇒ Object
Returns the value of attribute type.
-
#url ⇒ Object
Returns the value of attribute url.
-
#visible ⇒ Object
Returns the value of attribute visible.
-
#vt ⇒ Object
Returns the value of attribute vt.
Attributes inherited from Type::Base
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Activity
constructor
A new instance of Activity.
Constructor Details
#initialize(attributes = {}) ⇒ Activity
Returns a new instance of Activity.
8 9 10 11 12 13 14 15 16 |
# File 'lib/otx_ruby/types/activity.rb', line 8 def initialize(attributes={}) attributes.each do |key, value| if key != 'data' send("#{key.downcase}=", value) else @data = OTX::Indicator::Data.new(value) end end end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def data @data end |
#data_key ⇒ Object
Returns the value of attribute data_key.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def data_key @data_key end |
#domain ⇒ Object
Returns the value of attribute domain.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def domain @domain end |
#file ⇒ Object
Returns the value of attribute file.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def file @file end |
#first_date ⇒ Object
Returns the value of attribute first_date.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def first_date @first_date end |
#last_date ⇒ Object
Returns the value of attribute last_date.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def last_date @last_date end |
#md5 ⇒ Object
Returns the value of attribute md5.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def md5 @md5 end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def name @name end |
#source ⇒ Object
Returns the value of attribute source.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def source @source end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def status @status end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def type @type end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def url @url end |
#visible ⇒ Object
Returns the value of attribute visible.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def visible @visible end |
#vt ⇒ Object
Returns the value of attribute vt.
4 5 6 |
# File 'lib/otx_ruby/types/activity.rb', line 4 def vt @vt end |