Class: VAST::InlineAd

Inherits:
Ad show all
Defined in:
lib/vast/inline_ad.rb

Overview

Contains all the information necessary to display the visual experience of one complete ad.

Instance Attribute Summary

Attributes inherited from Element

#source_node

Instance Method Summary collapse

Methods inherited from Ad

#ad_system, #companion_creatives, create, #error_url, #extensions, #id, #impression, #impressions, #linear_creative, #linear_creatives, #non_linear_creatives

Methods inherited from Element

#initialize

Constructor Details

This class inherits a constructor from VAST::Element

Instance Method Details

#ad_titleObject

Common name of ad



11
12
13
# File 'lib/vast/inline_ad.rb', line 11

def ad_title
  source_node.at('AdTitle').content
end

#survey_urlObject

URI of request to survey vendor



6
7
8
# File 'lib/vast/inline_ad.rb', line 6

def survey_url
  URI.parse source_node.at('Survey').content
end