Module: ButterCMS

Defined in:
lib/butter_cms.rb,
lib/butter_cms/tag.rb,
lib/butter_cms/post.rb,
lib/butter_cms/author.rb,
lib/butter_cms/version.rb,
lib/butter_cms/category.rb,
lib/butter_cms/resource.rb,
lib/butter_cms/parsers/post.rb,
lib/butter_cms/requests/api.rb,
lib/butter_cms/requests/get.rb,
lib/butter_cms/configuration.rb,
lib/butter_cms/parsers/posts.rb,
lib/butter_cms/parsers/categories.rb,
lib/butter_cms/url_params_service.rb,
lib/butter_cms/parsers/post_object.rb,
lib/butter_cms/posts_fetch_service.rb,
lib/butter_cms/parsers/tags_objects.rb,
lib/butter_cms/parsers/author_object.rb,
lib/butter_cms/parsers/categories_objects.rb

Defined Under Namespace

Modules: Parsers, Requests, Version Classes: Author, Category, Configuration, Post, PostsFetchService, Resource, Tag, UrlParamsService

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



21
22
23
# File 'lib/butter_cms.rb', line 21

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ ButterCMS::Configuration

Returns the configuration class instance if block given



27
28
29
30
31
# File 'lib/butter_cms.rb', line 27

def self.configure
  self.configuration ||= ::ButterCMS::Configuration.new

  yield(configuration) if block_given?
end