Class: FundAmerica::SubscriptionAgreement
- Inherits:
-
Object
- Object
- FundAmerica::SubscriptionAgreement
- Defined in:
- lib/fund_america/subscription_agreement.rb
Class Method Summary collapse
-
.create(options) ⇒ Object
End point: apps.fundamerica.com/api/subscription_agreements (POST) Usage: FundAmerica::SubscriptionAgreement.create(options) Output: Creates a new subscription_agreement.
-
.details(subscription_agreement_id) ⇒ Object
End point: apps.fundamerica.com/api/subscription_agreements/:id (GET) Usage: FundAmerica::SubscriptionAgreement.details(subscription_agreement_id) Output: Returns the details of an subscription_agreement with matching id.
-
.list ⇒ Object
End point: apps.fundamerica.com/api/subscription_agreements (GET) Usage: FundAmerica::SubscriptionAgreement.list Output: Returns list of subscription_agreements.
Class Method Details
.create(options) ⇒ Object
End point: apps.fundamerica.com/api/subscription_agreements (POST) Usage: FundAmerica::SubscriptionAgreement.create(options) Output: Creates a new subscription_agreement
15 16 17 |
# File 'lib/fund_america/subscription_agreement.rb', line 15 def create() API::request(:post, 'subscription_agreements', ) end |
.details(subscription_agreement_id) ⇒ Object
End point: apps.fundamerica.com/api/subscription_agreements/:id (GET) Usage: FundAmerica::SubscriptionAgreement.details(subscription_agreement_id) Output: Returns the details of an subscription_agreement with matching id
22 23 24 |
# File 'lib/fund_america/subscription_agreement.rb', line 22 def details(subscription_agreement_id) API::request(:get, "subscription_agreements/#{subscription_agreement_id}") end |
.list ⇒ Object
End point: apps.fundamerica.com/api/subscription_agreements (GET) Usage: FundAmerica::SubscriptionAgreement.list Output: Returns list of subscription_agreements
8 9 10 |
# File 'lib/fund_america/subscription_agreement.rb', line 8 def list API::request(:get, 'subscription_agreements') end |