Module: Mousetrap
- Defined in:
- lib/mousetrap.rb,
lib/mousetrap/plan.rb,
lib/mousetrap/customer.rb,
lib/mousetrap/resource.rb,
lib/mousetrap/subscription.rb
Defined Under Namespace
Classes: Customer, 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.
15 16 17 |
# File 'lib/mousetrap.rb', line 15 def product_code @product_code end |
Class Method Details
.authenticate(user, password) ⇒ Object
17 18 19 |
# File 'lib/mousetrap.rb', line 17 def authenticate(user, password) Resource.basic_auth user, password end |