Module: Petfinder

Defined in:
lib/petfinder.rb,
lib/petfinder/api.rb,
lib/petfinder/mash.rb,
lib/petfinder/client.rb,
lib/petfinder/version.rb

Defined Under Namespace

Modules: Api Classes: Client, Error, Mash

Constant Summary collapse

API_URL =
"https://api.petfinder.com/v2"
VERSION =
"2.0.1"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.api_keyObject

Returns the value of attribute api_key.



20
21
22
# File 'lib/petfinder.rb', line 20

def api_key
  @api_key
end

.api_secretObject

Returns the value of attribute api_secret.



20
21
22
# File 'lib/petfinder.rb', line 20

def api_secret
  @api_secret
end

Class Method Details

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Petfinder)

    the object that the method was called on



23
24
25
26
# File 'lib/petfinder.rb', line 23

def self.configure
  yield self
  true
end