Module: Yoolinkpro

Extended by:
Yoolinkpro
Included in:
Yoolinkpro
Defined in:
lib/yoolinkpro/api.rb,
lib/yoolinkpro/client.rb,
lib/yoolinkpro-ruby-sdk.rb,
lib/yoolinkpro/exceptions.rb

Defined Under Namespace

Classes: Api, Client

Constant Summary collapse

API_SERVER =
"api.yoolinkpro.com"
API_VERSION =
1
ApiException =
Class.new(Exception)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#admin_keyObject

Returns the value of attribute admin_key.



13
14
15
# File 'lib/yoolinkpro-ruby-sdk.rb', line 13

def admin_key
  @admin_key
end

#private_keyObject

Returns the value of attribute private_key.



13
14
15
# File 'lib/yoolinkpro-ruby-sdk.rb', line 13

def private_key
  @private_key
end

#public_keyObject

Returns the value of attribute public_key.



13
14
15
# File 'lib/yoolinkpro-ruby-sdk.rb', line 13

def public_key
  @public_key
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

config/initializers/load_yoolinkpro.rb (for rails)

Yoolinkpro.configure do |config|
  config.public_key  = 'public_key'
  config.private_key = 'private_key'
  config.admin_key   = 'admin_key'
end

Yields:

  • (_self)

Yield Parameters:

  • _self (Yoolinkpro)

    the object that the method was called on



22
23
24
# File 'lib/yoolinkpro-ruby-sdk.rb', line 22

def configure
  yield self
end