Sha256: ed05101955906f3df6439893ecb5b6b78a72f9c1dc36585239085e6d6cf2d56a
Contents?: true
Size: 471 Bytes
Versions: 5
Compression:
Stored size: 471 Bytes
Contents
module BluepanClient class BaseRequest include Virtus.model attribute :host, String attribute :api_token, String attribute :api_secret, String attribute :path, String, lazy: true, default: :default_path attribute :uri, String, lazy: true, default: :default_uri private def default_path ApplyVars.(self.class::PATH, self) end def default_uri u = URI.parse(host) u.path = path u.to_s end end end
Version data entries
5 entries across 5 versions & 1 rubygems