Sha256: 0f00154676f48bd5c6c3f61257a88dde6cc818dcdac41c37973d65c01b8e4a8b
Contents?: true
Size: 690 Bytes
Versions: 19
Compression:
Stored size: 690 Bytes
Contents
require File.expand_path('../connection', __FILE__) require File.expand_path('../request', __FILE__) require File.expand_path('../oauth', __FILE__) module Instagram # @private class API # @private attr_accessor *Configuration::VALID_OPTIONS_KEYS # Creates a new API def initialize(options={}) options = Instagram.options.merge(options) Configuration::VALID_OPTIONS_KEYS.each do |key| send("#{key}=", options[key]) end end def config conf = {} Configuration::VALID_OPTIONS_KEYS.each do |key| conf[key] = send key end conf end include Connection include Request include OAuth end end
Version data entries
19 entries across 19 versions & 4 rubygems