Module: Closeio::Client::Sequence

Included in:
Closeio::Client
Defined in:
lib/closeio/resources/sequence.rb

Instance Method Summary collapse

Instance Method Details

#create_sequence(options = {}) ⇒ Object



12
13
14
# File 'lib/closeio/resources/sequence.rb', line 12

def create_sequence(options = {})
  post(sequence_path, options)
end

#delete_sequence(id) ⇒ Object



20
21
22
# File 'lib/closeio/resources/sequence.rb', line 20

def delete_sequence(id)
  delete(sequence_path(id))
end

#find_sequence(id) ⇒ Object



8
9
10
# File 'lib/closeio/resources/sequence.rb', line 8

def find_sequence(id)
  get(sequence_path(id))
end

#list_sequencesObject



4
5
6
# File 'lib/closeio/resources/sequence.rb', line 4

def list_sequences
  get(sequence_path, {})
end

#update_sequence(id, options = {}) ⇒ Object



16
17
18
# File 'lib/closeio/resources/sequence.rb', line 16

def update_sequence(id, options = {})
  put(sequence_path(id), options)
end