Class: ACTV::Interest

Inherits:
Identity show all
Defined in:
lib/actv/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

#assetServiceHostNameObject (readonly) Also known as: asset_service_host_name

Returns the value of attribute assetServiceHostName.



8
9
10
# File 'lib/actv/interest.rb', line 8

def assetServiceHostName
  @assetServiceHostName
end

#createdDateObject (readonly) Also known as: created_date

Returns the value of attribute createdDate.



8
9
10
# File 'lib/actv/interest.rb', line 8

def createdDate
  @createdDate
end

#imgUrlAdrObject (readonly) Also known as: image_url

Returns the value of attribute imgUrlAdr.



8
9
10
# File 'lib/actv/interest.rb', line 8

def imgUrlAdr
  @imgUrlAdr
end

#interestAttributesObject (readonly) Also known as: attributes

Returns the value of attribute interestAttributes.



8
9
10
# File 'lib/actv/interest.rb', line 8

def interestAttributes
  @interestAttributes
end

#interestGuidObject (readonly) Also known as: id

Returns the value of attribute interestGuid.



8
9
10
# File 'lib/actv/interest.rb', line 8

def interestGuid
  @interestGuid
end

#interestNameObject (readonly) Also known as: name

Returns the value of attribute interestName.



8
9
10
# File 'lib/actv/interest.rb', line 8

def interestName
  @interestName
end

#modifiedDateObject (readonly) Also known as: modified_date

Returns the value of attribute modifiedDate.



8
9
10
# File 'lib/actv/interest.rb', line 8

def modifiedDate
  @modifiedDate
end

#sorCreatedByObject (readonly) Also known as: created_by

Returns the value of attribute sorCreatedBy.



8
9
10
# File 'lib/actv/interest.rb', line 8

def sorCreatedBy
  @sorCreatedBy
end

#sorModifiedByObject (readonly) Also known as: modified_by

Returns the value of attribute sorModifiedBy.



8
9
10
# File 'lib/actv/interest.rb', line 8

def sorModifiedBy
  @sorModifiedBy
end

#urlAdrObject (readonly) Also known as: url

Returns the value of attribute urlAdr.



8
9
10
# File 'lib/actv/interest.rb', line 8

def urlAdr
  @urlAdr
end

Instance Method Details

#tagsObject Also known as: interest_tags, interestTags



22
23
24
25
26
# File 'lib/actv/interest.rb', line 22

def tags
  @asset_tags ||= Array(@attrs[:interestTags]).map do |tag|
    ACTV::AssetTag.new(tag)
  end
end

#topicsObject Also known as: interest_topics, interestTopics



30
31
32
33
34
# File 'lib/actv/interest.rb', line 30

def topics
  @asset_topics ||= Array(@attrs[:interestTopics]).map do |topic|
    ACTV::AssetTopic.new(topic)
  end
end