Class: EasyApiDoc::Resource

Inherits:
Object
  • Object
show all
Includes:
Configurable
Defined in:
app/models/easy_api_doc/resource.rb

Instance Method Summary collapse

Methods included from Configurable

#[], #[]=, #defaults, included, #inherited_overridable, #initialize, #load_children

Instance Method Details

#actionsObject



9
10
11
# File 'app/models/easy_api_doc/resource.rb', line 9

def actions
  @actions ||= load_children(EasyApiDoc::Action, 'actions')
end

#authenticationObject



13
14
15
# File 'app/models/easy_api_doc/resource.rb', line 13

def authentication
  @authentication ||= inherited_overridable('authentication', :from => ['resource', 'namespace', 'apiversion'])
end

#formatsObject



5
6
7
# File 'app/models/easy_api_doc/resource.rb', line 5

def formats
  inherited_overridable('formats', :from => ['namespace'])
end