lib/epages/shop.rb
require 'epages/error'
module Epages
class Shop
attr_reader :host, :name, :token, :protocol
def initialize(host, name, token = nil, options = { https: true })
@host = host
@name = name
@token = token
@protocol = options[:https] ? 'https' : 'http'
end
# return the shop name
def shop_name
name
end
# retuns a boolean indicating if the shop has a token set
def token?
!!token
end
end
end