Sha256: 0ab47c9aa56c7fbb8690ae1fdd13096771afb128e4c59e62113dc9065f84b346
Contents?: true
Size: 373 Bytes
Versions: 2
Compression:
Stored size: 373 Bytes
Contents
module EveOnline class AccountTypeObject STATUSES = { 'Character' => :character, 'Account' => :account, 'Corporation' => :corporation }.freeze attr_reader :input def initialize(input) @input = input end def value raise ArgumentError unless STATUSES.key?(input) @value ||= STATUSES.fetch(input) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.11.0 | lib/eve_online/account_type_object.rb |
eve_online-0.10.0 | lib/eve_online/account_type_object.rb |