Class: Passifier::UrlSource
- Inherits:
-
Object
- Object
- Passifier::UrlSource
- Defined in:
- lib/passifier/url_source.rb
Overview
Asset derived from a url Used to pull in the background images
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#name ⇒ Object
(also: #filename)
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(name, url) ⇒ UrlSource
constructor
A new instance of UrlSource.
Constructor Details
#initialize(name, url) ⇒ UrlSource
Returns a new instance of UrlSource.
14 15 16 17 18 |
# File 'lib/passifier/url_source.rb', line 14 def initialize(name, url) @name = name @url = url populate_content end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
9 10 11 |
# File 'lib/passifier/url_source.rb', line 9 def content @content end |
#name ⇒ Object (readonly) Also known as: filename
Returns the value of attribute name.
9 10 11 |
# File 'lib/passifier/url_source.rb', line 9 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
9 10 11 |
# File 'lib/passifier/url_source.rb', line 9 def url @url end |