Sha256: b86c5e280ca4147c5e68b8781f4be55f549b996490d50b15bdb0447f3666692a
Contents?: true
Size: 258 Bytes
Versions: 3
Compression:
Stored size: 258 Bytes
Contents
# frozen_string_literal: true module NovaposhtaApi class Resource attr_reader :http def initialize(http: nil) @http = http end def request(*args) response = http.request(:post, *args) response['data'] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
novaposhta_api-0.2.1 | lib/novaposhta_api/resource.rb |
novaposhta_api-0.2.0 | lib/novaposhta_api/resource.rb |
novaposhta_api-0.1.9 | lib/novaposhta_api/resource.rb |