Class: TheCity::UserAdminPrivilegeWriter
- Defined in:
- lib/writers/user_admin_privilege_writer.rb
Instance Attribute Summary
Attributes inherited from ApiWriter
#error_messages, #response_code
Instance Method Summary collapse
- #delete_object ⇒ Object
-
#initialize(data) ⇒ UserAdminPrivilegeWriter
constructor
Constructor.
Methods inherited from ApiWriter
Constructor Details
#initialize(data) ⇒ UserAdminPrivilegeWriter
Constructor.
8 9 10 11 12 13 |
# File 'lib/writers/user_admin_privilege_writer.rb', line 8 def initialize(data) @url_action = :post @url_data_path = "/users/#{data[:user_id]}/admin_privileges" @url_data_params = data end |
Instance Method Details
#delete_object ⇒ Object
16 17 18 |
# File 'lib/writers/user_admin_privilege_writer.rb', line 16 def delete_object raise TheCityExceptions::TheCityResponseError.new('Unable to delete Admin Privilege') end |