Class: Pike13::CLI::Commands::Front::PlanTerms
- Inherits:
-
Base
- Object
- Thor
- Base
- Pike13::CLI::Commands::Front::PlanTerms
show all
- Defined in:
- lib/pike13/cli/commands/front/plan_terms.rb
Instance Method Summary
collapse
Methods inherited from Base
base_usage, format_options, handle_argument_error, printable_commands
included
Instance Method Details
#complete(plan_id, terms_id) ⇒ Object
30
31
32
33
34
35
36
37
|
# File 'lib/pike13/cli/commands/front/plan_terms.rb', line 30
def complete(plan_id, terms_id)
handle_error do
result = with_progress("Completing plan terms") do
Pike13::Front::PlanTerms.complete(plan_id: plan_id, plan_terms_id: terms_id)
end
output(result)
end
end
|
#get(plan_id, terms_id) ⇒ Object
21
22
23
24
25
26
|
# File 'lib/pike13/cli/commands/front/plan_terms.rb', line 21
def get(plan_id, terms_id)
handle_error do
result = Pike13::Front::PlanTerms.find(plan_id: plan_id, plan_terms_id: terms_id)
output(result)
end
end
|
#list(plan_id) ⇒ Object
10
11
12
13
14
15
16
17
|
# File 'lib/pike13/cli/commands/front/plan_terms.rb', line 10
def list(plan_id)
handle_error do
result = with_progress("Fetching plan terms") do
Pike13::Front::PlanTerms.all(plan_id: plan_id)
end
output(result)
end
end
|