Module: Lnkdtogo
- Defined in:
- lib/lnkdtogo.rb
Defined Under Namespace
Classes: Configuration
Class Attribute Summary collapse
-
.api_path ⇒ Object
Returns the value of attribute api_path.
-
.key ⇒ Object
Returns the value of attribute key.
-
.secret ⇒ Object
Returns the value of attribute secret.
Class Method Summary collapse
Class Attribute Details
.api_path ⇒ Object
Returns the value of attribute api_path.
24 25 26 |
# File 'lib/lnkdtogo.rb', line 24 def api_path @api_path end |
.key ⇒ Object
Returns the value of attribute key.
24 25 26 |
# File 'lib/lnkdtogo.rb', line 24 def key @key end |
.secret ⇒ Object
Returns the value of attribute secret.
24 25 26 |
# File 'lib/lnkdtogo.rb', line 24 def secret @secret end |
Class Method Details
.configuration ⇒ Object
15 16 17 |
# File 'lib/lnkdtogo.rb', line 15 def self.configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
19 20 21 |
# File 'lib/lnkdtogo.rb', line 19 def self.configure yield(configuration) if block_given? end |
.shares(urls) ⇒ Object
40 41 42 43 44 45 46 47 48 49 |
# File 'lib/lnkdtogo.rb', line 40 def self.shares(urls) if urls.is_a? Array # => many_urls many_urls(urls) else # => single_url single_url(urls) end # Lnkdtogo.configuration.key end |