Module: Core::Endpoint::BasicHandler::Json
- Included in:
- Core::Endpoint::BasicHandler
- Defined in:
- app/api/core/endpoint/basic_handler.rb
Overview
rubocop:todo Style/Documentation
Instance Method Summary collapse
Instance Method Details
#related ⇒ Object
13 14 15 |
# File 'app/api/core/endpoint/basic_handler.rb', line 13 def [] end |
#root_json ⇒ Object
9 10 11 |
# File 'app/api/core/endpoint/basic_handler.rb', line 9 def root_json 'unknown' end |
#tree_for(_object, _options) ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'app/api/core/endpoint/basic_handler.rb', line 17 def tree_for(_object, ) associations, actions = {}, {} .each { |r| r.separate(associations, actions) } Core::Io::Json::Grammar::Root.new( root_json, associations.merge('actions' => Core::Io::Json::Grammar::Actions.new(self, actions)) ) end |