Class: AlertSpec

Inherits:
RightResource::Base show all
Defined in:
lib/right_resource/alert_spec.rb

Instance Attribute Summary

Attributes inherited from RightResource::Base

#attributes, #id

Class Method Summary collapse

Methods inherited from RightResource::Base

action, #clone, collection_path, connection, connection=, correct_attributes, create, destory, #destory, #dup, element_path, format, format=, headers, index, #initialize, #known_attributes, #loads, logger, logger=, #new?, #reload, resource_id, resource_name, #respond_to?, #respond_to_without_attributes?, #save, #schema, show, status_code, update, #update_attribute, #update_attributes

Constructor Details

This class inherits a constructor from RightResource::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class RightResource::Base

Class Method Details

.alert_specs_subject(id, params = {}) ⇒ Object



3
4
5
6
7
8
# File 'lib/right_resource/alert_spec.rb', line 3

def alert_specs_subject(id, params={})
  pair = URI.decode({:alert_specs_subject => params}.to_params).split('&').map {|l| l.split('=')}
  h = Hash[*pair.flatten]
  path = "alert_specs_subject"
  action(:post, path, h)
end