Class: MachineShop::Utility

Inherits:
APIResource show all
Defined in:
lib/machineshop/utility.rb

Instance Attribute Summary

Attributes inherited from MachineShopObject

#auth_token

Class Method Summary collapse

Methods inherited from APIResource

class_name, url, #url

Methods inherited from MachineShopObject

#[], #[]=, #as_json, construct_from, #each, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from MachineShop::MachineShopObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class MachineShop::MachineShopObject

Class Method Details

.email(params = {}, auth_token) ⇒ Object



3
4
5
# File 'lib/machineshop/utility.rb', line 3

def self.email(params={}, auth_token)
  MachineShop.gem_post(email_url, auth_token, params)
end

.sms(params = {}, auth_token) ⇒ Object



7
8
9
# File 'lib/machineshop/utility.rb', line 7

def self.sms(params={}, auth_token)
  MachineShop.gem_post(sms_url, auth_token, params)
end