Class: Operto::Issues::Index
- Inherits:
-
Object
- Object
- Operto::Issues::Index
- Includes:
- Operation
- Defined in:
- lib/operto/issues/index.rb,
sig/operto.rbs
Instance Method Summary collapse
Methods included from Operation
Instance Method Details
#call(start_date:, skip: 0, take: 50) ⇒ ::Dry::Monads::Result[::Hash[::Symbol, untyped]]
7 8 9 10 11 12 13 |
# File 'lib/operto/issues/index.rb', line 7 def call(start_date:, skip: 0, take: 50) query_params = build_query_params(start_date, skip, take) response = Operto::Client.connection.get('issues', query_params) Operto::Client.handle_response(response) { |body| format_results(body) } rescue StandardError => e Failure(e) end |