Sha256: 73f1083ee3ffc52475c4e4131e0061fec08056833ab22c8fd3c8516725e209b0
Contents?: true
Size: 474 Bytes
Versions: 5
Compression:
Stored size: 474 Bytes
Contents
class UnknownFollowerTypeError < StandardError end module Covetous module Data class Follower < Covetous::Shen FOLLOWER_TYPES = %w{enchantress scoundrel templar} def initialize(follower_type) raise UnknownFollowerTypeError, "Please only use a follower type from: #{FOLLOWER_TYPES.to_s}" unless FOLLOWER_TYPES.include? follower_type @url = "#{Covetous::Data::BASE_URL}/follower/#{follower_type}" super end end end end
Version data entries
5 entries across 5 versions & 1 rubygems