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
-
.linkshare_url ⇒ Object
Returns the value of attribute linkshare_url.
-
.partner_id ⇒ Object
Returns the value of attribute partner_id.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
create config/initializers/ilinkmaker.rb.
Class Attribute Details
.linkshare_url ⇒ Object
Returns the value of attribute linkshare_url.
33 34 35 |
# File 'lib/ilinkmaker.rb', line 33 def linkshare_url @linkshare_url end |
.partner_id ⇒ Object
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’)
27 28 29 30 |
# File 'lib/ilinkmaker.rb', line 27 def self.configure yield self true end |