Class: Rpa::Asset

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

Instance Method Summary collapse

Constructor Details

#initialize(photo_map, options = {}) ⇒ Asset

Returns a new instance of Asset.



6
7
8
9
# File 'lib/rpa/asset.rb', line 6

def initialize(photo_map, options = {})
  @photo_map = photo_map
  @options = options
end

Instance Method Details

#cssObject



21
22
23
# File 'lib/rpa/asset.rb', line 21

def css
  path('app.css')
end

#htmlObject



11
12
13
14
15
# File 'lib/rpa/asset.rb', line 11

def html
  photo_map = @photo_map
  options = @options
  build('app.html.erb', binding)
end

#jsObject



17
18
19
# File 'lib/rpa/asset.rb', line 17

def js
  path('app.js')
end