Module: Ilinkmaker

Defined in:
lib/ilinkmaker.rb,
lib/ilinkmaker/client.rb,
lib/ilinkmaker/version.rb

Defined Under Namespace

Classes: Client

Constant Summary collapse

VERSION =
"0.0.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.linkshare_urlObject

Returns the value of attribute linkshare_url.



33
34
35
# File 'lib/ilinkmaker.rb', line 33

def linkshare_url
  @linkshare_url
end

.partner_idObject

Returns the value of attribute partner_id.



33
34
35
# File 'lib/ilinkmaker.rb', line 33

def partner_id
  @partner_id
end

Class Method Details

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

create config/initializers/ilinkmaker.rb

Ilinkmaker.configure do |config|

config.partner_id = 'partner_id'
config.linkshare_url = 'linkshare_url'

end client = Ilinkmaker::Client.new

or

Ilinkmaker.partner_id = ‘partner_id’ Ilinkmaker.linkshare_url = ‘linkshare_url’

or

Ilinkmaker::Client.new(:partner_id => ‘partner_id’, :linkshare_url => ‘linkshare_url’)

Yields:

  • (_self)

Yield Parameters:

  • _self (Ilinkmaker)

    the object that the method was called on



27
28
29
30
# File 'lib/ilinkmaker.rb', line 27

def self.configure
  yield self
  true
end