Class: Broadway::Asset
- Inherits:
-
Object
- Object
- Broadway::Asset
- Defined in:
- lib/broadway/asset.rb
Instance Attribute Summary collapse
-
#thumb ⇒ Object
Returns the value of attribute thumb.
-
#title ⇒ Object
Returns the value of attribute title.
-
#tooltip ⇒ Object
Returns the value of attribute tooltip.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Asset
constructor
A new instance of Asset.
- #inspect ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Asset
Returns a new instance of Asset.
6 7 8 9 10 |
# File 'lib/broadway/asset.rb', line 6 def initialize( = {}) .each do |k,v| self.send "#{k}=", v end end |
Instance Attribute Details
#thumb ⇒ Object
Returns the value of attribute thumb.
4 5 6 |
# File 'lib/broadway/asset.rb', line 4 def thumb @thumb end |
#title ⇒ Object
Returns the value of attribute title.
4 5 6 |
# File 'lib/broadway/asset.rb', line 4 def title @title end |
#tooltip ⇒ Object
Returns the value of attribute tooltip.
4 5 6 |
# File 'lib/broadway/asset.rb', line 4 def tooltip @tooltip end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/broadway/asset.rb', line 4 def url @url end |
Instance Method Details
#inspect ⇒ Object
12 13 14 |
# File 'lib/broadway/asset.rb', line 12 def inspect "#<Broadway:Asset @url=#{self.url.inspect} @title=#{self.title.inspect}>" end |