Class: Effective::StyleGuide

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/effective/style_guide.rb

Constant Summary collapse

ATTRIBUTES =
[
  :id, :title, :email, :password, :number, :range, :category, :content, :phone, :fax, :cell,
  :url, :color, :option1, :option2, :option3, :details,
  :archived, :drink, :food, :price, :updated_at, :publish_on, :static_text,
  :start_at, :end_at, :date, :time
]

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ StyleGuide

Returns a new instance of StyleGuide.



18
19
20
21
22
# File 'app/models/effective/style_guide.rb', line 18

def initialize(*args)
  super

  self.color = 'black'
end

Class Method Details

.column_defaultsObject



32
33
34
# File 'app/models/effective/style_guide.rb', line 32

def self.column_defaults
  {}
end

.columnsObject



28
29
30
# File 'app/models/effective/style_guide.rb', line 28

def self.columns
  @columns ||= []
end

.has_attribute?(*args) ⇒ Boolean

Returns:

  • (Boolean)


36
37
38
# File 'app/models/effective/style_guide.rb', line 36

def self.has_attribute?(*args)
  false
end

Instance Method Details

#idObject



24
25
26
# File 'app/models/effective/style_guide.rb', line 24

def id
  object_id
end

#static_textObject



40
41
42
# File 'app/models/effective/style_guide.rb', line 40

def static_text
  'some static text'
end