class PactBroker::Api::Resources::Dashboard
Public Instance Methods
allowed_methods()
click to toggle source
# File lib/pact_broker/api/resources/dashboard.rb, line 19 def allowed_methods ["GET", "OPTIONS"] end
content_types_provided()
click to toggle source
# File lib/pact_broker/api/resources/dashboard.rb, line 12 def content_types_provided [ ["application/hal+json", :to_json], ["text/plain", :to_text], ] end
policy_name()
click to toggle source
# File lib/pact_broker/api/resources/dashboard.rb, line 31 def policy_name :'dashboard::dashboard' end
to_json()
click to toggle source
# File lib/pact_broker/api/resources/dashboard.rb, line 23 def to_json decorator_class(:dashboard_decorator).new(index_items).to_json(decorator_options) end
to_text()
click to toggle source
# File lib/pact_broker/api/resources/dashboard.rb, line 27 def to_text decorator_class(:dashboard_text_decorator).new(index_items).to_text(decorator_options) end
Private Instance Methods
index_items()
click to toggle source
# File lib/pact_broker/api/resources/dashboard.rb, line 37 def index_items index_service.find_index_items_for_api(identifier_from_path.merge(pagination_options)) end