class Epages::Shop
Attributes
host[R]
name[R]
protocol[R]
token[R]
Public Class Methods
new(host, name, token = nil, options = { https: true })
click to toggle source
# File lib/epages/shop.rb, line 7 def initialize(host, name, token = nil, options = { https: true }) @host = host @name = name @token = token @protocol = options[:https] ? 'https' : 'http' end
Public Instance Methods
shop_name()
click to toggle source
return the shop name
# File lib/epages/shop.rb, line 15 def shop_name name end
token?()
click to toggle source
retuns a boolean indicating if the shop has a token set
# File lib/epages/shop.rb, line 20 def token? !!token end