Class: ProductTours::VideoResolver::Result
- Inherits:
-
Data
- Object
- Data
- ProductTours::VideoResolver::Result
- Defined in:
- lib/product_tours/video_resolver.rb
Instance Attribute Summary collapse
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#provider_id ⇒ Object
readonly
Returns the value of attribute provider_id.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#kind ⇒ Object (readonly)
Returns the value of attribute kind
7 8 9 |
# File 'lib/product_tours/video_resolver.rb', line 7 def kind @kind end |
#provider ⇒ Object (readonly)
Returns the value of attribute provider
7 8 9 |
# File 'lib/product_tours/video_resolver.rb', line 7 def provider @provider end |
#provider_id ⇒ Object (readonly)
Returns the value of attribute provider_id
7 8 9 |
# File 'lib/product_tours/video_resolver.rb', line 7 def provider_id @provider_id end |
#url ⇒ Object (readonly)
Returns the value of attribute url
7 8 9 |
# File 'lib/product_tours/video_resolver.rb', line 7 def url @url end |
Instance Method Details
#direct? ⇒ Boolean
9 |
# File 'lib/product_tours/video_resolver.rb', line 9 def direct? = kind == 'direct' |
#iframe? ⇒ Boolean
8 |
# File 'lib/product_tours/video_resolver.rb', line 8 def iframe? = kind == 'iframe' |
#metadata ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/product_tours/video_resolver.rb', line 11 def { 'provider' => provider, 'provider_id' => provider_id, 'embed_url' => iframe? ? url : nil }.compact end |