Module: RockRMS::Client::BlockType

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

Instance Method Summary collapse

Instance Method Details

#block_type_path(id = nil) ⇒ Object



9
10
11
# File 'lib/rock_rms/resources/block_type.rb', line 9

def block_type_path(id = nil)
  id ? "BlockTypes/#{id}" : 'BlockTypes'
end

#list_block_types(options = {}) ⇒ Object



4
5
6
7
# File 'lib/rock_rms/resources/block_type.rb', line 4

def list_block_types(options = {})
  res = get(block_type_path, options)
  Response::BlockType.format(res)
end