Module: RockRMS::Client::EntityType

Included in:
RockRMS::Client
Defined in:
lib/rock_rms/resources/entity_type.rb

Constant Summary collapse

PATH =
'EntityTypes'.freeze

Instance Method Summary collapse

Instance Method Details

#find_entity_type(id) ⇒ Object



11
12
13
14
# File 'lib/rock_rms/resources/entity_type.rb', line 11

def find_entity_type(id)
  res = get(entity_type_path(id))
  Response::EntityType.format(res)
end

#list_entity_types(options = {}) ⇒ Object



6
7
8
9
# File 'lib/rock_rms/resources/entity_type.rb', line 6

def list_entity_types(options = {})
  res = get(entity_type_path, options)
  Response::EntityType.format(res)
end