lib/agile_notifier/its.rb in agile_notifier-1.1.1 vs lib/agile_notifier/its.rb in agile_notifier-2.0
- old
+ new
@@ -1,19 +1,21 @@
module AgileNotifier
class ITS
- def initialize(url)
- @url = url
+ include Servable
+
+ def initialize(args)
+ @url = args.fetch(:url)
end
- class Project
- def initialize(name)
- @name = name
- end
+ def query_amount_of_tickets(query)
+ raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller)
end
- class Issue
- def initialize(id)
- @id = id
- end
+ def set_limit(project, query, limit)
+ raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller)
+ end
+
+ def exceeds_limit?
+ raise(NotImplementedError, "Abstract method [#{__method__}] is called, please implement", caller)
end
end
end