Class: Wesabe::BaseModel

Inherits:
Object
  • Object
show all
Includes:
Util
Defined in:
lib/wesabe/base_model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Util

#all_or_one

Instance Attribute Details

#wesabeWesabe

The Wesabe instance this model uses.

Returns:

  • (Wesabe)

    The object containing the username/password to use.



6
7
8
# File 'lib/wesabe/base_model.rb', line 6

def wesabe
  @wesabe
end

Instance Method Details

#get(options) ⇒ Object

Requests via GET using the given options.

See Also:



18
19
20
# File 'lib/wesabe/base_model.rb', line 18

def get(options)
  wesabe.get(options)
end

#post(options) ⇒ Object

Requests via POST using the given options.

See Also:



11
12
13
# File 'lib/wesabe/base_model.rb', line 11

def post(options)
  wesabe.post(options)
end