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

Instance Method Details

#destroy_actionObject Also known as: update_action



30
31
32
# File 'lib/kalibro_client/helpers/request_methods.rb', line 30

def destroy_action
  ":id"
end

#destroy_paramsObject



35
36
37
# File 'lib/kalibro_client/helpers/request_methods.rb', line 35

def destroy_params
  {id: self.id}
end

#destroy_prefixObject



39
40
41
# File 'lib/kalibro_client/helpers/request_methods.rb', line 39

def destroy_prefix
  ""
end

#save_actionObject



22
23
24
# File 'lib/kalibro_client/helpers/request_methods.rb', line 22

def save_action
  ""
end

#save_paramsObject



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_prefixObject



26
27
28
# File 'lib/kalibro_client/helpers/request_methods.rb', line 26

def save_prefix
  ""
end

#update_paramsObject



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_prefixObject



47
48
49
# File 'lib/kalibro_client/helpers/request_methods.rb', line 47

def update_prefix
  ""
end