Module: Allegro

Defined in:
lib/allegro-api.rb,
lib/allegro/client.rb,
lib/allegro/version.rb

Defined Under Namespace

Classes: Client

Constant Summary collapse

AUTH_URI =
'https://allegro.pl/auth/oauth'.freeze
API_URI =
'https://api.allegro.pl'.freeze
VERSION =
'0.0.4'.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clientObject (readonly)

Returns the value of attribute client.



9
10
11
# File 'lib/allegro-api.rb', line 9

def client
  @client
end

Instance Method Details

#initialize(client_id, secret) ⇒ Object



11
12
13
# File 'lib/allegro-api.rb', line 11

def initialize(client_id, secret)
  @client = Allegro::Client.new(client_id, secret)
end