Class: ACTV::AssetImage

Inherits:
Base
  • Object
show all
Defined in:
lib/actv/asset_image.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#attrs

Instance Method Summary collapse

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::Base

Dynamic Method Handling

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

Instance Attribute Details

#imageCaptionTxtObject (readonly) Also known as: caption

Returns the value of attribute imageCaptionTxt.



3
4
5
# File 'lib/actv/asset_image.rb', line 3

def imageCaptionTxt
  @imageCaptionTxt
end

#imageNameObject (readonly) Also known as: name

Returns the value of attribute imageName.



3
4
5
# File 'lib/actv/asset_image.rb', line 3

def imageName
  @imageName
end

#imageTypeObject (readonly) Also known as: type

Returns the value of attribute imageType.



3
4
5
# File 'lib/actv/asset_image.rb', line 3

def imageType
  @imageType
end

#imageUrlAdrObject (readonly) Also known as: url

Returns the value of attribute imageUrlAdr.



3
4
5
# File 'lib/actv/asset_image.rb', line 3

def imageUrlAdr
  @imageUrlAdr
end

#linkTargetObject (readonly) Also known as: target

Returns the value of attribute linkTarget.



3
4
5
# File 'lib/actv/asset_image.rb', line 3

def linkTarget
  @linkTarget
end

#linkUrlObject (readonly) Also known as: link

Returns the value of attribute linkUrl.



3
4
5
# File 'lib/actv/asset_image.rb', line 3

def linkUrl
  @linkUrl
end

Instance Method Details

#to_sObject



20
21
22
# File 'lib/actv/asset_image.rb', line 20

def to_s
  imageUrlAdr
end

#to_strObject



16
17
18
# File 'lib/actv/asset_image.rb', line 16

def to_str
  imageUrlAdr
end

#video?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/actv/asset_image.rb', line 12

def video?
  target == "VIDEO" || type == "VIDEO"
end