Module: Closeio::Client::Sequence
- Included in:
- Closeio::Client
- Defined in:
- lib/closeio/resources/sequence.rb
Instance Method Summary collapse
- #create_sequence(options = {}) ⇒ Object
- #delete_sequence(id) ⇒ Object
- #find_sequence(id) ⇒ Object
- #list_sequences ⇒ Object
- #update_sequence(id, options = {}) ⇒ Object
Instance Method Details
#create_sequence(options = {}) ⇒ Object
12 13 14 |
# File 'lib/closeio/resources/sequence.rb', line 12 def create_sequence( = {}) post(sequence_path, ) 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_sequences ⇒ Object
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, = {}) put(sequence_path(id), ) end |