Class: Datmachine::Subscription

Inherits:
Object
  • Object
show all
Includes:
Resource
Defined in:
lib/datmachine/resources/subscription.rb

Instance Attribute Summary

Attributes included from Resource

#attributes, #href, #hyperlinks, #id, #links

Instance Method Summary collapse

Methods included from Resource

#copy_from, #does_resource_respond_to?, #fetch, #hydrate, included, #initialize, #method_missing, #reload, #respond_to?, #respond_to_missing?, #sanitize, #save, #unstore

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Datmachine::Resource

Instance Method Details

#cancelObject



7
8
9
10
# File 'lib/datmachine/resources/subscription.rb', line 7

def cancel
  self.status = "canceled"
  self.save
end