Module: Mousetrap
- Defined in:
- lib/mousetrap.rb,
lib/mousetrap/plan.rb,
lib/mousetrap/invoice.rb,
lib/mousetrap/customer.rb,
lib/mousetrap/resource.rb,
lib/mousetrap/subscription.rb
Defined Under Namespace
Classes: ApiDown, Customer, Invoice, Plan, Resource, Subscription
Constant Summary collapse
- API_UNSUPPORTED =
"CheddarGetter API doesn't support this."
Class Attribute Summary collapse
-
.product_code ⇒ Object
Returns the value of attribute product_code.
Class Method Summary collapse
Class Attribute Details
.product_code ⇒ Object
Returns the value of attribute product_code.
19 20 21 |
# File 'lib/mousetrap.rb', line 19 def product_code @product_code end |
Class Method Details
.authenticate(user, password) ⇒ Object
21 22 23 |
# File 'lib/mousetrap.rb', line 21 def authenticate(user, password) Resource.basic_auth user, password end |