Class: Broadway::Asset

Inherits:
Object
  • Object
show all
Defined in:
lib/broadway/asset.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  options.each do |k,v|
    self.send "#{k}=", v
  end
end

Instance Attribute Details

#thumbObject

Returns the value of attribute thumb.



4
5
6
# File 'lib/broadway/asset.rb', line 4

def thumb
  @thumb
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/broadway/asset.rb', line 4

def title
  @title
end

#tooltipObject

Returns the value of attribute tooltip.



4
5
6
# File 'lib/broadway/asset.rb', line 4

def tooltip
  @tooltip
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/broadway/asset.rb', line 4

def url
  @url
end

Instance Method Details

#inspectObject



12
13
14
# File 'lib/broadway/asset.rb', line 12

def inspect
  "#<Broadway:Asset @url=#{self.url.inspect} @title=#{self.title.inspect}>"
end