Class: Panda::CMS::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/panda-cms.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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

#analyticsObject

Returns the value of attribute analytics.



11
12
13
# File 'lib/panda-cms.rb', line 11

def analytics
  @analytics
end

#authenticationObject

Returns the value of attribute authentication.



11
12
13
# File 'lib/panda-cms.rb', line 11

def authentication
  @authentication
end

#editor_js_tool_configObject

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_toolsObject

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

#instagramObject

Returns the value of attribute instagram.



11
12
13
# File 'lib/panda-cms.rb', line 11

def instagram
  @instagram
end

#postsObject

Returns the value of attribute posts.



11
12
13
# File 'lib/panda-cms.rb', line 11

def posts
  @posts
end

#require_login_to_viewObject

Returns the value of attribute require_login_to_view.



11
12
13
# File 'lib/panda-cms.rb', line 11

def 
  @require_login_to_view
end

#titleObject

Returns the value of attribute title.



11
12
13
# File 'lib/panda-cms.rb', line 11

def title
  @title
end

#urlObject

Returns the value of attribute url.



11
12
13
# File 'lib/panda-cms.rb', line 11

def url
  @url
end