Module: EventsJp::Connection

Included in:
EventsJp, EventObject
Defined in:
lib/events_jp/connection.rb

Instance Method Summary collapse

Instance Method Details

#get(endpoint, opt = {}) ⇒ Object



8
9
10
11
# File 'lib/events_jp/connection.rb', line 8

def get(endpoint, opt = {})
  url = opt.empty? ? endpoint : "#{endpoint}?#{build_query(opt)}"
  open(url).read
end