Module: Closeio::Client::CustomField
- Included in:
- Closeio::Client
- Defined in:
- lib/closeio/resources/custom_field.rb
Instance Method Summary collapse
- #create_custom_field(options = {}) ⇒ Object
- #delete_custom_field(id) ⇒ Object
- #find_custom_field(id) ⇒ Object
- #list_custom_fields ⇒ Object
- #update_custom_field(id, options = {}) ⇒ Object
Instance Method Details
#create_custom_field(options = {}) ⇒ Object
13 14 15 |
# File 'lib/closeio/resources/custom_field.rb', line 13 def create_custom_field(={}) post(custom_field_path, ) end |
#delete_custom_field(id) ⇒ Object
21 22 23 |
# File 'lib/closeio/resources/custom_field.rb', line 21 def delete_custom_field(id) delete("#{custom_field_path}#{id}/") end |
#find_custom_field(id) ⇒ Object
9 10 11 |
# File 'lib/closeio/resources/custom_field.rb', line 9 def find_custom_field(id) get("#{custom_field_path}#{id}/") end |
#list_custom_fields ⇒ Object
5 6 7 |
# File 'lib/closeio/resources/custom_field.rb', line 5 def list_custom_fields get(custom_field_path) end |
#update_custom_field(id, options = {}) ⇒ Object
17 18 19 |
# File 'lib/closeio/resources/custom_field.rb', line 17 def update_custom_field(id, ={}) put("#{custom_field_path}#{id}/", ) end |