Sha256: e2304ac76d449556aaf06b9e43b1b539247dbd58f243466098504fc0b0f42cc7
Contents?: true
Size: 663 Bytes
Versions: 1
Compression:
Stored size: 663 Bytes
Contents
module Labelary class << self attr_accessor :configuration end def self.configuration @configuration ||= Configuration.new end def self.configure yield configuration end class Configuration attr_accessor *[ :url, :http_adapter, :dpmm, :width, :height, :index, :content_type, :font ] def initialize @url = 'http://api.labelary.com' @http_adapter = Faraday.default_adapter @dpmm = nil @width = nil @height = nil @index = '' @content_type = 'image/png' @font = '' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
labelary-0.5.0 | lib/labelary/configuration.rb |