Class: ACTV::PopularInterest

Inherits:
Identity show all
Defined in:
lib/actv/popular_interest.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

Methods inherited from Identity

#==, #initialize

Methods inherited from Base

#[], attr_reader, define_attribute_method, define_predicate_method, define_uri_method, #delete, from_response, #initialize, #memoize, #method_missing, object_attr_reader, #respond_to?, #to_hash, #update, uri_attr_reader

Constructor Details

This class inherits a constructor from ACTV::Identity

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ACTV::Base

Instance Attribute Details

#_idObject (readonly) Also known as: id

Returns the value of attribute _id.



7
8
9
# File 'lib/actv/popular_interest.rb', line 7

def _id
  @_id
end

#_indexObject (readonly) Also known as: index

Returns the value of attribute _index.



7
8
9
# File 'lib/actv/popular_interest.rb', line 7

def _index
  @_index
end

#_sourceObject (readonly)

Returns the value of attribute _source.



7
8
9
# File 'lib/actv/popular_interest.rb', line 7

def _source
  @_source
end

#_typeObject (readonly) Also known as: type

Returns the value of attribute _type.



7
8
9
# File 'lib/actv/popular_interest.rb', line 7

def _type
  @_type
end

#_versionObject (readonly) Also known as: version

Returns the value of attribute _version.



7
8
9
# File 'lib/actv/popular_interest.rb', line 7

def _version
  @_version
end

#existsObject (readonly)

Returns the value of attribute exists.



7
8
9
# File 'lib/actv/popular_interest.rb', line 7

def exists
  @exists
end

Instance Method Details

#interestObject



14
15
16
# File 'lib/actv/popular_interest.rb', line 14

def interest
  @interest ||= ACTV::Interest.new(@attrs[:_source][:interest]) unless @attrs[:_source].nil? || @attrs[:_source][:interest].nil?
end