Class: Writefully::Tools::Stationery
- Inherits:
-
Object
- Object
- Writefully::Tools::Stationery
- Includes:
- Celluloid
- Defined in:
- lib/writefully/tools/stationery.rb
Defined Under Namespace
Classes: ContentModelNotFound, SomeAssetsNotRemoved, SomeAssetsNotUploaded
Instance Attribute Summary collapse
-
#asset ⇒ Object
readonly
Returns the value of attribute asset.
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#site_id ⇒ Object
readonly
Returns the value of attribute site_id.
Instance Method Summary collapse
-
#initialize(index) ⇒ Stationery
constructor
A new instance of Stationery.
- #perform ⇒ Object
Constructor Details
Instance Attribute Details
#asset ⇒ Object (readonly)
Returns the value of attribute asset.
6 7 8 |
# File 'lib/writefully/tools/stationery.rb', line 6 def asset @asset end |
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/writefully/tools/stationery.rb', line 6 def content @content end |
#index ⇒ Object (readonly)
Returns the value of attribute index.
6 7 8 |
# File 'lib/writefully/tools/stationery.rb', line 6 def index @index end |
#site_id ⇒ Object (readonly)
Returns the value of attribute site_id.
6 7 8 |
# File 'lib/writefully/tools/stationery.rb', line 6 def site_id @site_id end |
Instance Method Details
#perform ⇒ Object
19 20 21 22 23 |
# File 'lib/writefully/tools/stationery.rb', line 19 def perform use ensure ::ActiveRecord::Base.clear_active_connections! if defined?(::ActiveRecord) end |