Module: BridgeAPI::Client::CustomField
- Defined in:
- lib/bridge_api/client/custom_field.rb
Instance Method Summary collapse
- #add_custom_field(params = {}) ⇒ Object
- #delete_custom_field(custom_field_id, params = {}) ⇒ Object
- #get_all_custom_fields(params = {}) ⇒ Object
- #get_custom_field(custom_field_id, params = {}) ⇒ Object
- #update_custom_field(custom_field_id, params = {}) ⇒ Object
Instance Method Details
#add_custom_field(params = {}) ⇒ Object
4 5 6 |
# File 'lib/bridge_api/client/custom_field.rb', line 4 def add_custom_field(params = {}) post("#{API_PATH}#{AUTHOR_PATH}#{CUSTOM_FIELD_PATH}", params) end |
#delete_custom_field(custom_field_id, params = {}) ⇒ Object
12 13 14 |
# File 'lib/bridge_api/client/custom_field.rb', line 12 def delete_custom_field(custom_field_id, params = {}) delete("#{API_PATH}#{AUTHOR_PATH}#{CUSTOM_FIELD_PATH}/#{custom_field_id}", params) end |
#get_all_custom_fields(params = {}) ⇒ Object
20 21 22 |
# File 'lib/bridge_api/client/custom_field.rb', line 20 def get_all_custom_fields(params = {}) get("#{API_PATH}#{AUTHOR_PATH}#{CUSTOM_FIELD_PATH}", params) end |
#get_custom_field(custom_field_id, params = {}) ⇒ Object
8 9 10 |
# File 'lib/bridge_api/client/custom_field.rb', line 8 def get_custom_field(custom_field_id, params = {}) get("#{API_PATH}#{AUTHOR_PATH}#{CUSTOM_FIELD_PATH}/#{custom_field_id}", params) end |
#update_custom_field(custom_field_id, params = {}) ⇒ Object
16 17 18 |
# File 'lib/bridge_api/client/custom_field.rb', line 16 def update_custom_field(custom_field_id, params = {}) put("#{API_PATH}#{AUTHOR_PATH}#{CUSTOM_FIELD_PATH}/#{custom_field_id}", params) end |