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.



15
16
17
18
19
# File 'app/models/effective/style_guide.rb', line 15

def initialize(*args)
  super

  self.color = 'black'
end

Class Method Details

.column_defaultsObject



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

def self.column_defaults
  {}
end

.columnsObject



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

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

.has_attribute?(*args) ⇒ Boolean

Returns:

  • (Boolean)


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

def self.has_attribute?(*args)
  false
end

Instance Method Details

#idObject



21
22
23
# File 'app/models/effective/style_guide.rb', line 21

def id
  object_id
end

#static_textObject



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

def static_text
  'some static text'
end