class MingleEvents::MingleApiKeyAccess
Client for Mingle’s API Key access.
Attributes
base_url[R]
Public Class Methods
new(base_url, api_key)
click to toggle source
# File lib/mingle_events/mingle_api_key_access.rb 7 def initialize(base_url, api_key) 8 @base_url = base_url 9 @api_key = api_key 10 end
Public Instance Methods
fetch_page(location)
click to toggle source
# File lib/mingle_events/mingle_api_key_access.rb 12 def fetch_page(location) 13 location = @base_url + location if location[0..0] == '/' 14 Http.get(location) do |req| 15 req["MINGLE_API_KEY"] = @api_key 16 end 17 end