Class: OTX::Indicator::Activity

Inherits:
Type::Base show all
Defined in:
lib/otx_ruby/types/activity.rb

Instance Attribute Summary collapse

Attributes inherited from Type::Base

#created, #id, #modified

Instance Method Summary collapse

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

#dataObject

Returns the value of attribute data.



4
5
6
# File 'lib/otx_ruby/types/activity.rb', line 4

def data
  @data
end

#data_keyObject

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

#domainObject

Returns the value of attribute domain.



4
5
6
# File 'lib/otx_ruby/types/activity.rb', line 4

def domain
  @domain
end

#fileObject

Returns the value of attribute file.



4
5
6
# File 'lib/otx_ruby/types/activity.rb', line 4

def file
  @file
end

#first_dateObject

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_dateObject

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

#md5Object

Returns the value of attribute md5.



4
5
6
# File 'lib/otx_ruby/types/activity.rb', line 4

def md5
  @md5
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/otx_ruby/types/activity.rb', line 4

def name
  @name
end

#sourceObject

Returns the value of attribute source.



4
5
6
# File 'lib/otx_ruby/types/activity.rb', line 4

def source
  @source
end

#statusObject

Returns the value of attribute status.



4
5
6
# File 'lib/otx_ruby/types/activity.rb', line 4

def status
  @status
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/otx_ruby/types/activity.rb', line 4

def type
  @type
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/otx_ruby/types/activity.rb', line 4

def url
  @url
end

#visibleObject

Returns the value of attribute visible.



4
5
6
# File 'lib/otx_ruby/types/activity.rb', line 4

def visible
  @visible
end

#vtObject

Returns the value of attribute vt.



4
5
6
# File 'lib/otx_ruby/types/activity.rb', line 4

def vt
  @vt
end