Class | Point::Base |
In: |
lib/point/base.rb
|
Parent: | Object |
attributes | [RW] | Store all attributes for the model we‘re working with. |
errors | [RW] | Store all attributes for the model we‘re working with. |
id | [RW] | Store all attributes for the model we‘re working with. |
Return the collection path for this model. Very lazy pluralizion here at the moment, nothing in Point needs to be pluralized with anything other than just adding an ‘s’.
Find a record or set of records. Passing :all will return all records and passing an integer will return the individual record for the ID passed.
Delete this record from the remote service. Returns true or false depending on the success status of the destruction.
Pass any methods via. the attributes hash to see if they exist before resuming normal method_missing behaviour
Run a post on the member path. Returns the ouput from the post, false if a conflict or raises a Point::Error. Optionally, pass a second ‘data’ parameter to send data to the post action.