Sha256: 7c4ec60b1236f2a122ce4ab282cad264d3182ec424e2b8934d366b9401229773
Contents?: true
Size: 550 Bytes
Versions: 1
Compression:
Stored size: 550 Bytes
Contents
require 'httparty' module ToNetMeApi # Модуль обрабатывает запросы к API 2et.me и возвращает HTTParty объект . module API class << self def set_api_core unless ToNetMeApi.api_core ToNetMeApi.reset else ToNetMeApi.api_core end end def call(attrs,options={},auth_key = nil) @auth = {:auth_key => auth_key} options.merge!(@auth) HTTParty.get(set_api_core+attrs,:query => options) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
to_net_me_api-0.3 | lib/to_net_me_api/api.rb |