Sha256: eb6fad7dccc91ac4b130c91bc5f604f76c048a3648e765c34b61747bc53393cc
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
module EveOnline class EventResponseObject STATUSES = { 'Undecided' => :undecided, 'Accepted' => :accepted, 'Declined' => :declined, 'Tentative' => :tentative } attr_reader :input def initialize(input) @input = input end def value raise ArgumentError unless STATUSES.has_key?(input) @value ||= STATUSES.fetch(input) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.6.0 | lib/eve_online/event_response_object.rb |