Sha256: a81b1085eba0554f0bb83056e2056cf2f9fcb2f6b2de542da080e8aa304df021

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

module Whatser
  class Service < Whatser::Resource
    def key
      self.class.name.split('::').last.downcase
    end
    
    def connection_url
      "#{client.api_uri}/oauth/services/#{key}/authorize"
    end
    
    def disconnection_url
      "#{client.api_uri}/oauth/services/#{key}/disconnect"
    end      
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
whatser-0.2.0 lib/whatser/api/service.rb