Class: Buttercms::Configuration
- Inherits:
-
Object
- Object
- Buttercms::Configuration
- Defined in:
- lib/buttercms.rb
Instance Attribute Summary collapse
-
#author_template ⇒ Object
Returns the value of attribute author_template.
-
#category_template ⇒ Object
Returns the value of attribute category_template.
-
#home_template ⇒ Object
Returns the value of attribute home_template.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#post_template ⇒ Object
Returns the value of attribute post_template.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 |
# File 'lib/buttercms.rb', line 16 def initialize # Displays a default blog post with instructions on getting a personal token. @token = 'f97d131d955f48af0769a4c827bb47728cbd5d05' end |
Instance Attribute Details
#author_template ⇒ Object
Returns the value of attribute author_template.
14 15 16 |
# File 'lib/buttercms.rb', line 14 def end |
#category_template ⇒ Object
Returns the value of attribute category_template.
14 15 16 |
# File 'lib/buttercms.rb', line 14 def category_template @category_template end |
#home_template ⇒ Object
Returns the value of attribute home_template.
14 15 16 |
# File 'lib/buttercms.rb', line 14 def home_template @home_template end |
#layout ⇒ Object
Returns the value of attribute layout.
14 15 16 |
# File 'lib/buttercms.rb', line 14 def layout @layout end |
#post_template ⇒ Object
Returns the value of attribute post_template.
14 15 16 |
# File 'lib/buttercms.rb', line 14 def post_template @post_template end |
#token ⇒ Object
Returns the value of attribute token.
14 15 16 |
# File 'lib/buttercms.rb', line 14 def token @token end |