Module: RequestMethods
- Included in:
- KalibroClient::Entities::Base
- Defined in:
- lib/kalibro_client/helpers/request_methods.rb
Overview
You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
- #destroy_action ⇒ Object (also: #update_action)
- #destroy_params ⇒ Object
- #destroy_prefix ⇒ Object
- #save_action ⇒ Object
- #save_params ⇒ Object
- #save_prefix ⇒ Object
- #update_params ⇒ Object
- #update_prefix ⇒ Object
Instance Method Details
#destroy_action ⇒ Object Also known as: update_action
30 31 32 |
# File 'lib/kalibro_client/helpers/request_methods.rb', line 30 def destroy_action ":id" end |
#destroy_params ⇒ Object
35 36 37 |
# File 'lib/kalibro_client/helpers/request_methods.rb', line 35 def destroy_params {id: self.id} end |
#destroy_prefix ⇒ Object
39 40 41 |
# File 'lib/kalibro_client/helpers/request_methods.rb', line 39 def destroy_prefix "" end |
#save_action ⇒ Object
22 23 24 |
# File 'lib/kalibro_client/helpers/request_methods.rb', line 22 def save_action "" end |
#save_params ⇒ Object
18 19 20 |
# File 'lib/kalibro_client/helpers/request_methods.rb', line 18 def save_params {instance_class_name.underscore.to_sym => self.to_hash} end |
#save_prefix ⇒ Object
26 27 28 |
# File 'lib/kalibro_client/helpers/request_methods.rb', line 26 def save_prefix "" end |
#update_params ⇒ Object
43 44 45 |
# File 'lib/kalibro_client/helpers/request_methods.rb', line 43 def update_params {instance_class_name.underscore.to_sym => self.to_hash, :id => self.id} end |
#update_prefix ⇒ Object
47 48 49 |
# File 'lib/kalibro_client/helpers/request_methods.rb', line 47 def update_prefix "" end |