Class: Seofy::Adapters::ExistingColumn

Inherits:
Base
  • Object
show all
Defined in:
lib/seofy/adapters/existing_column.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#after_create, #before_create

Constructor Details

#initialize(options = {}) ⇒ ExistingColumn

Returns a new instance of ExistingColumn.



5
6
7
# File 'lib/seofy/adapters/existing_column.rb', line 5

def initialize(options={}) 
  super(options)
end

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column.



4
5
6
# File 'lib/seofy/adapters/existing_column.rb', line 4

def column
  @column
end

Instance Method Details

#need_update_slug?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/seofy/adapters/existing_column.rb', line 16

def need_update_slug?
  false
end

#seofy_slug(inst) ⇒ Object



9
10
11
# File 'lib/seofy/adapters/existing_column.rb', line 9

def seofy_slug(inst)
  inst.send(self.column)
end

#set_seofy_slug(inst) ⇒ Object



13
14
# File 'lib/seofy/adapters/existing_column.rb', line 13

def set_seofy_slug(inst)
end