Sha256: 1e84d877dc3fe6bb9467320ef8db21a7d821ce80c7ee12ab2c90255713cb2a18
Contents?: true
Size: 593 Bytes
Versions: 1
Compression:
Stored size: 593 Bytes
Contents
module Twimock module API # OAuthでブラウザ認証するAPI # GET http://api.twimock.com/authenticate?oauth_token=xxx class OAuth class Cancelled VIEW_DIRECTORY = File.expand_path("../../../../../view", __FILE__) VIEW_FILE_NAME = "oauth_cancelled.html.erb" def self.view(oauth_token) @oauth_token = oauth_token erb = ERB.new(File.read(filepath)) erb.result(binding) end private def self.filepath File.join(VIEW_DIRECTORY, VIEW_FILE_NAME) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
twimock-0.0.2 | lib/twimock/api/oauth/cancelled.rb |