Module: RockRMS::Client::Block

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

Instance Method Summary collapse

Instance Method Details

#block_path(id = nil) ⇒ Object



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

def block_path(id = nil)
  id ? "Blocks/#{id}" : 'Blocks'
end

#list_blocks(options = {}) ⇒ Object



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

def list_blocks(options = {})
  res = get(block_path, options)
  Response::Block.format(res)
end