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
6 7 8 |
# File 'lib/bridge_api/client/custom_field.rb', line 6 def add_custom_field(params = {}) post("#{API_PATH}#{AUTHOR_PATH}#{CUSTOM_FIELD_PATH}", params) end |
#delete_custom_field(custom_field_id, params = {}) ⇒ Object
14 15 16 |
# File 'lib/bridge_api/client/custom_field.rb', line 14 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
22 23 24 |
# File 'lib/bridge_api/client/custom_field.rb', line 22 def get_all_custom_fields(params = {}) get("#{API_PATH}#{AUTHOR_PATH}#{CUSTOM_FIELD_PATH}", params) end |
#get_custom_field(custom_field_id, params = {}) ⇒ Object
10 11 12 |
# File 'lib/bridge_api/client/custom_field.rb', line 10 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
18 19 20 |
# File 'lib/bridge_api/client/custom_field.rb', line 18 def update_custom_field(custom_field_id, params = {}) put("#{API_PATH}#{AUTHOR_PATH}#{CUSTOM_FIELD_PATH}/#{custom_field_id}", params) end |