Module: Immobilienscout::API::Property
- Defined in:
- lib/immobilienscout/api/property.rb
Class Method Summary collapse
- .create(params) ⇒ Object
- .destroy(is24_id) ⇒ Object
- .publish(params) ⇒ Object
- .show(is24_id) ⇒ Object
- .update(is24_id, params) ⇒ Object
Class Method Details
.create(params) ⇒ Object
7 8 9 10 11 |
# File 'lib/immobilienscout/api/property.rb', line 7 def create(params) raise ArgumentError unless params.present? execute_post_request(create_url, params) end |
.destroy(is24_id) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/immobilienscout/api/property.rb', line 27 def destroy(is24_id) raise ArgumentError unless is24_id.present? destroy_url = destroy_url(is24_id) execute_delete_request(destroy_url) end |
.publish(params) ⇒ Object
21 22 23 24 25 |
# File 'lib/immobilienscout/api/property.rb', line 21 def publish(params) raise ArgumentError unless params.present? execute_post_request(publish_url, params) end |
.show(is24_id) ⇒ Object
35 36 37 38 39 40 41 |
# File 'lib/immobilienscout/api/property.rb', line 35 def show(is24_id) raise ArgumentError unless is24_id.present? show_url = show_url(is24_id) execute_get_request(show_url) end |
.update(is24_id, params) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/immobilienscout/api/property.rb', line 13 def update(is24_id, params) raise ArgumentError unless params.present? update_url = update_url(is24_id) execute_put_request(update_url, params) end |