lib/fatsecret_lite.rb in fatsecret_lite-0.2.1 vs lib/fatsecret_lite.rb in fatsecret_lite-0.2.2
- old
+ new
@@ -1,11 +1,13 @@
# lib/fatsecret_lite.rb
require "oauth2"
require "rest-client"
require "json"
+require_relative 'fatsecret_search'
module FatsecretLite
+ extend FatsecretSearch
class Configuration
attr_accessor :client_id, :client_secret
def initialize
@client_id = nil
@@ -85,6 +87,7 @@
puts "Error: #{e.response}"
rescue StandardError => e
puts "An error occurred: #{e.message}"
end
end
+ include FatsecretLite::Search
end