module Polr
Constants
- API_VERSION
- Error
- VERSION
Attributes
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/polr.rb, line 11 def self.configure self.configuration ||= Configuration.new yield(configuration) end
lookup(url_ending, **options)
click to toggle source
# File lib/polr/api.rb, line 46 def self.lookup(url_ending, **options) Api.process { Api.request(:lookup, { url_ending: url_ending }.merge(options)) } end
shorten(url, **options)
click to toggle source
Actions to use
# File lib/polr/api.rb, line 42 def self.shorten(url, **options) Api.process { Api.request(:shorten, { url: url }.merge(options)) } end