Class: Pike13::API::V2::Front::PlanTerms

Inherits:
Base
  • Object
show all
Defined in:
lib/pike13/api/v2/front/plan_terms.rb

Class Method Summary collapse

Methods inherited from Base

client, configure

Class Method Details

.all(plan_id:, **params) ⇒ Object

GET /front/plans/:plan_id/plan_terms



10
11
12
# File 'lib/pike13/api/v2/front/plan_terms.rb', line 10

def all(plan_id:, **params)
  client.get("front/plans/#{plan_id}/plan_terms", params)
end

.complete(plan_id:, plan_terms_id:) ⇒ Object

GET /front/plans/:plan_id/plan_terms/:plan_terms_id/complete



20
21
22
# File 'lib/pike13/api/v2/front/plan_terms.rb', line 20

def complete(plan_id:, plan_terms_id:)
  client.get("front/plans/#{plan_id}/plan_terms/#{plan_terms_id}/complete")
end

.find(plan_id:, plan_terms_id:) ⇒ Object

GET /front/plans/:plan_id/plan_terms/:plan_terms_id



15
16
17
# File 'lib/pike13/api/v2/front/plan_terms.rb', line 15

def find(plan_id:, plan_terms_id:)
  client.get("front/plans/#{plan_id}/plan_terms/#{plan_terms_id}")
end