Module: ApiTwister::Documentation::ClassMethods

Defined in:
lib/api-twister/documentation.rb

Instance Method Summary collapse

Instance Method Details

#doc_attributes(options = {}) ⇒ Object



18
19
20
21
22
# File 'lib/api-twister/documentation.rb', line 18

def doc_attributes(options = {})
  # return a list of attributes and methods
  #TODO: If a user is passed filter by permissions
  self._api_definition.all_objects(:attribute) + self._api_definition.all_objects(:method) 
end

#doc_code_tables(options = {}) ⇒ Object



24
25
26
27
# File 'lib/api-twister/documentation.rb', line 24

def doc_code_tables(options = {})
  #TODO: If a user is passed filter by permissions
  self._api_definition.all_objects(:code_table)
end

#node_name(options = {}) ⇒ Object



13
14
15
16
# File 'lib/api-twister/documentation.rb', line 13

def node_name(options = {})
  #TODO: If a user is passed filter by permissions
  self._api_definition.node_name
end