Sha256: 36892310049b5bb02b0ac08a11e4ebcadb0d74a00ed47e5f21e6acbba142e525
Contents?: true
Size: 513 Bytes
Versions: 2
Compression:
Stored size: 513 Bytes
Contents
module Tito class RequestProxy attr_accessor :proxy_path attr_accessor :proxy_class attr_accessor :api_key def initialize(proxy_class: nil, proxy_path: nil, api_key: nil) @proxy_path = proxy_path @proxy_class = proxy_class @api_key = api_key end def all proxy_class.all(path_prefix: proxy_path, api_key: api_key) end def new(attrs = {}) proxy_class.new(attrs.merge(path_prefix: proxy_path, api_key: api_key)) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tito-0.2.2 | lib/tito/request_proxy.rb |
tito-0.2.0 | lib/tito/request_proxy.rb |