Module: FatSecret

Defined in:
lib/fat_secret.rb,
lib/fat_secret/base.rb,
lib/fat_secret/food.rb,
lib/fat_secret/config.rb,
lib/fat_secret/serving.rb,
lib/fat_secret/version.rb,
lib/fat_secret/relations.rb,
lib/fat_secret/connection.rb,
lib/fat_secret/results_proxy.rb,
lib/fat_secret/relations/has_many.rb,
lib/fat_secret/relations/belongs_to.rb,
lib/fat_secret/relations/has_many_proxy.rb

Overview

require ‘yajl’

Defined Under Namespace

Modules: Relations Classes: Base, Config, Connection, Food, ResultsProxy, Serving

Constant Summary collapse

VERSION =
"0.0.6"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



22
23
24
# File 'lib/fat_secret.rb', line 22

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



25
26
27
28
29
# File 'lib/fat_secret.rb', line 25

def self.configure
  self.configuration ||= FatSecret::Config.new
  yield(configuration)
  return self.configuration
end