Class: Seofy::Adapters::Base
- Inherits:
-
Object
- Object
- Seofy::Adapters::Base
- Defined in:
- lib/seofy/adapters/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #after_create(inst) ⇒ Object
- #before_create(inst) ⇒ Object
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #need_update_slug? ⇒ Boolean
- #seofy_slug(inst) ⇒ Object
- #set_seofy_slug(inst) ⇒ Object
Constructor Details
permalink #initialize(options = {}) ⇒ Base
Returns a new instance of Base.
5 6 7 8 |
# File 'lib/seofy/adapters/base.rb', line 5 def initialize(={}) @options = @column = [:column] end |
Instance Attribute Details
permalink #column ⇒ Object (readonly)
Returns the value of attribute column.
4 5 6 |
# File 'lib/seofy/adapters/base.rb', line 4 def column @column end |
permalink #options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/seofy/adapters/base.rb', line 4 def @options end |
Instance Method Details
permalink #after_create(inst) ⇒ Object
[View source]
22 23 24 |
# File 'lib/seofy/adapters/base.rb', line 22 def after_create(inst) # do nothing end |
permalink #before_create(inst) ⇒ Object
[View source]
18 19 20 |
# File 'lib/seofy/adapters/base.rb', line 18 def before_create(inst) set_seofy_slug(inst) end |
permalink #need_update_slug? ⇒ Boolean
26 27 28 |
# File 'lib/seofy/adapters/base.rb', line 26 def need_update_slug? true end |
permalink #seofy_slug(inst) ⇒ Object
[View source]
10 11 12 |
# File 'lib/seofy/adapters/base.rb', line 10 def seofy_slug(inst) raise "not implement" end |
permalink #set_seofy_slug(inst) ⇒ Object
[View source]
14 15 16 |
# File 'lib/seofy/adapters/base.rb', line 14 def set_seofy_slug(inst) raise "not implement" end |