Sha256: 42b9694a070cf33eaba7f8fe20265933923c39fb72f951057071f842356d03d8
Contents?: true
Size: 544 Bytes
Versions: 1
Compression:
Stored size: 544 Bytes
Contents
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.4 | lib/to_net_me_api/api.rb |