Class: StaticFileSaver

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ember_path, document) ⇒ StaticFileSaver

Returns a new instance of StaticFileSaver.



4
5
6
7
# File 'lib/static_file_saver.rb', line 4

def initialize(ember_path, document)
  self.path = static_file_path_for(ember_path)
  self.document = document
end

Instance Attribute Details

#documentObject

Returns the value of attribute document.



2
3
4
# File 'lib/static_file_saver.rb', line 2

def document
  @document
end

#pathObject

Returns the value of attribute path.



2
3
4
# File 'lib/static_file_saver.rb', line 2

def path
  @path
end

Instance Method Details

#saveObject



9
10
11
12
# File 'lib/static_file_saver.rb', line 9

def save
  create_directory
  create_file
end