Sha256: 4692636bf700a8ece67f8d7ec43faa9abece31de66fbee7dbdb8c32d80de4bd8

Contents?: true

Size: 682 Bytes

Versions: 5

Compression:

Stored size: 682 Bytes

Contents

module MachineShop
  class Utility < APIResource
    def self.email(params={}, auth_token)
      MachineShop.post(email_url, auth_token, params)
    end

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

    private

    def self.email_url
      url + '/email'
    end

    def self.sms_url
      url + '/SMS'
    end    
    
    def refresh      
      raise NotImplementedError.new('Utility is a helper api.  You should not perform this action on it')
    end

    def self.retrieve(id, auth_token=nil)
       raise NotImplementedError.new('Utility is a helper api.  You should not perform this action on it')
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
machineshop-1.0.0 lib/machineshop/utility.rb
machineshop-0.0.4 lib/machineshop/utility.rb
machineshop-0.0.3 lib/machineshop/utility.rb
machineshop-0.0.2 machineshop/lib/machineshop/utility.rb
machineshop-0.0.1 lib/machineshop/utility.rb