Sha256: 4cecadbd288b8cd0d45ce6a9afbe6c194a9e896823285fa9756f5030a2663dc9

Contents?: true

Size: 1.05 KB

Versions: 50

Compression:

Stored size: 1.05 KB

Contents

require 'actv/identity'
require 'actv/asset_tag'
require 'actv/asset_topic'

module ACTV
  class Interest < ACTV::Identity

    attr_reader :interestGuid, :interestName, :urlAdr, :imgUrlAdr, :sorCreatedBy, :sorModifiedBy, :createdDate,
        :modifiedDate, :interestTags, :interestAttributes, :interestTopics, :assetServiceHostName

    alias id interestGuid
    alias name interestName
    alias url urlAdr
    alias image_url imgUrlAdr
    alias created_by sorCreatedBy
    alias modified_by sorModifiedBy
    alias created_date createdDate
    alias modified_date modifiedDate
    alias attributes interestAttributes
    alias asset_service_host_name assetServiceHostName

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

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

  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
actv-2.10.9 lib/actv/interest.rb
actv-2.10.8 lib/actv/interest.rb
actv-2.10.7 lib/actv/interest.rb
actv-2.10.6 lib/actv/interest.rb
actv-2.10.5 lib/actv/interest.rb
actv-2.10.4 lib/actv/interest.rb
actv-2.10.3 lib/actv/interest.rb
actv-2.10.2 lib/actv/interest.rb
actv-2.10.1 lib/actv/interest.rb
actv-2.10.0 lib/actv/interest.rb
actv-2.9.2 lib/actv/interest.rb
actv-2.9.1 lib/actv/interest.rb
actv-2.9.0 lib/actv/interest.rb
actv-2.8.2 lib/actv/interest.rb
actv-2.8.1 lib/actv/interest.rb
actv-2.7.0 lib/actv/interest.rb
actv-2.6.0 lib/actv/interest.rb
actv-2.5.2 lib/actv/interest.rb
actv-2.5.1 lib/actv/interest.rb
actv-2.5.0 lib/actv/interest.rb