Module: Hippo::API

Defined in:
lib/hippo/api.rb,
lib/hippo/api/root.rb,
lib/hippo/api/cable.rb,
lib/hippo/api/pub_sub.rb,
lib/hippo/api/routing.rb,
lib/hippo/api/to_json.rb,
lib/hippo/api/updates.rb,
lib/hippo/api/route_set.rb,
lib/hippo/api/helper_methods.rb,
lib/hippo/api/controller_base.rb,
lib/hippo/api/error_formatter.rb,
lib/hippo/api/formatted_reply.rb,
lib/hippo/api/request_wrapper.rb,
lib/hippo/api/generic_controller.rb,
lib/hippo/api/tenant_domain_router.rb,
lib/hippo/api/authentication_provider.rb

Defined Under Namespace

Modules: Cable, ErrorFormmater, FormattedReply, Handlers, HelperMethods, RequestWrapper, Routing, Updates Classes: AuthenticationProvider, ControllerBase, GenericController, PubSub, Root, RouteSet, RoutingBlock, TenantDomainRouter

Class Method Summary collapse

Class Method Details

.routes(&block) ⇒ Object


97
98
99
# File 'lib/hippo/api/route_set.rb', line 97

def self.routes(&block)
    @routes ||= RouteSet.new(API::Root)
end

.to_json(data) ⇒ Object


4
5
6
# File 'lib/hippo/api/to_json.rb', line 4

def self.to_json(data)
    Oj.dump(data)
end