Module: Fanfeedr
- Defined in:
- lib/fanfeedr.rb,
lib/fanfeedr/client.rb,
lib/fanfeedr/version.rb
Defined Under Namespace
Classes: Client
Constant Summary collapse
- VERSION =
"0.2.0"
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.tier ⇒ Object
Returns the value of attribute tier.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
create config/initializers/fanfeedr.rb.
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
33 34 35 |
# File 'lib/fanfeedr.rb', line 33 def api_key @api_key end |
.tier ⇒ Object
Returns the value of attribute tier.
34 35 36 |
# File 'lib/fanfeedr.rb', line 34 def tier @tier end |
Class Method Details
.configure {|_self| ... } ⇒ Object
create config/initializers/fanfeedr.rb
Fanfeedr.configure do |config|
config.api_key = 'api_key'
config.api_type = 'api_type'
end client = Fanfeedr::Client.new
or
Fanfeedr.api_key = ‘api_key’ Fanfeedr.api_type = ‘api_type’
or
Fanfeedr::Client.new(:api_key => ‘api_key’, :api_type => ‘api_type’)
27 28 29 30 |
# File 'lib/fanfeedr.rb', line 27 def self.configure yield self true end |