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

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



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

def api_key
  @api_key
end

.tierObject

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’)

Yields:

  • (_self)

Yield Parameters:

  • _self (Fanfeedr)

    the object that the method was called on



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

def self.configure
  yield self
  true
end