Class: F00px::Client

Inherits:
Object
  • Object
show all
Includes:
Api::Photos, Authentication, Configuration, Connection, Request
Defined in:
lib/f00px/client.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Api::Photos

#popular, #user_photos

Methods included from Request

#get, #post, #queue

Methods included from Connection

#connection

Methods included from Configuration

#configure, #credentials, included

Methods included from F00px::Configuration::Options

included, #reset, #settings

Methods included from Authentication

#xauth

Constructor Details

#initialize(options = {}) ⇒ Client

Returns a new instance of Client.



15
16
17
18
19
# File 'lib/f00px/client.rb', line 15

def initialize(options = {})
  F00px::Configuration.options.each do |key|
    settings[key] = options[key] || F00px.__send__("#{key}".to_sym)
  end
end

Class Method Details

.configure(&block) ⇒ Object



11
12
13
# File 'lib/f00px/client.rb', line 11

def self.configure(&block)
  Client.new.configure(&block)
end