Class: Panda::CMS::Configuration
- Inherits:
-
Object
- Object
- Panda::CMS::Configuration
- Defined in:
- lib/panda-cms.rb
Instance Attribute Summary collapse
-
#analytics ⇒ Object
Returns the value of attribute analytics.
-
#authentication ⇒ Object
Returns the value of attribute authentication.
-
#editor_js_tool_config ⇒ Object
Returns the value of attribute editor_js_tool_config.
-
#editor_js_tools ⇒ Object
Returns the value of attribute editor_js_tools.
-
#instagram ⇒ Object
Returns the value of attribute instagram.
-
#posts ⇒ Object
Returns the value of attribute posts.
-
#require_login_to_view ⇒ Object
Returns the value of attribute require_login_to_view.
-
#title ⇒ Object
Returns the value of attribute title.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/panda-cms.rb', line 15 def initialize @title = "Demo Site" @require_login_to_view = false @authentication = {} @posts = {enabled: true, prefix: "blog"} @url = nil @editor_js_tools = [] @editor_js_tool_config = {} @instagram = { enabled: false, username: nil, access_token: nil } @analytics = { google_analytics: { enabled: false, tracking_id: nil } } end |
Instance Attribute Details
#analytics ⇒ Object
Returns the value of attribute analytics.
11 12 13 |
# File 'lib/panda-cms.rb', line 11 def analytics @analytics end |
#authentication ⇒ Object
Returns the value of attribute authentication.
11 12 13 |
# File 'lib/panda-cms.rb', line 11 def authentication @authentication end |
#editor_js_tool_config ⇒ Object
Returns the value of attribute editor_js_tool_config.
11 12 13 |
# File 'lib/panda-cms.rb', line 11 def editor_js_tool_config @editor_js_tool_config end |
#editor_js_tools ⇒ Object
Returns the value of attribute editor_js_tools.
11 12 13 |
# File 'lib/panda-cms.rb', line 11 def editor_js_tools @editor_js_tools end |
#instagram ⇒ Object
Returns the value of attribute instagram.
11 12 13 |
# File 'lib/panda-cms.rb', line 11 def instagram @instagram end |
#posts ⇒ Object
Returns the value of attribute posts.
11 12 13 |
# File 'lib/panda-cms.rb', line 11 def posts @posts end |
#require_login_to_view ⇒ Object
Returns the value of attribute require_login_to_view.
11 12 13 |
# File 'lib/panda-cms.rb', line 11 def require_login_to_view @require_login_to_view end |
#title ⇒ Object
Returns the value of attribute title.
11 12 13 |
# File 'lib/panda-cms.rb', line 11 def title @title end |
#url ⇒ Object
Returns the value of attribute url.
11 12 13 |
# File 'lib/panda-cms.rb', line 11 def url @url end |