Class: FlightPlanCli::Api
- Inherits:
-
Object
- Object
- FlightPlanCli::Api
- Defined in:
- lib/flight_plan_cli/api.rb
Instance Method Summary collapse
- #board_tickets(assignee_username: nil, remote_number: nil) ⇒ Object
-
#initialize(url:, key:, secret:, board_id: nil, repo_id: nil) ⇒ Api
constructor
A new instance of Api.
Constructor Details
#initialize(url:, key:, secret:, board_id: nil, repo_id: nil) ⇒ Api
Returns a new instance of Api.
5 6 7 8 9 10 11 |
# File 'lib/flight_plan_cli/api.rb', line 5 def initialize(url:, key:, secret:, board_id: nil, repo_id: nil) @url = url @key = key @secret = secret @board_id = board_id @repo_id = repo_id end |
Instance Method Details
#board_tickets(assignee_username: nil, remote_number: nil) ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'lib/flight_plan_cli/api.rb', line 13 def board_tickets(assignee_username: nil, remote_number: nil) params = { repo_id: repo_id, assignee_username: assignee_username, remote_number: remote_number } HTTParty.get("#{url}/boards/#{board_id}/board_tickets.json", query: params, headers: headers) end |