Sha256: d4827956c1ce564300a2ec99e6994f54945693fff33b0cb316e422b6b8a4a655
Contents?: true
Size: 440 Bytes
Versions: 4
Compression:
Stored size: 440 Bytes
Contents
module EveOnline class Standing attr_reader :options def initialize(options) @options = options end def as_json { from_id: from_id, from_name: from_name, standing: standing } end def from_id options.fetch('@fromID').to_i end def from_name options.fetch('@fromName') end def standing options.fetch('@standing').to_f end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
eve_online-0.12.0 | lib/eve_online/standing.rb |
eve_online-0.11.0 | lib/eve_online/standing.rb |
eve_online-0.10.0 | lib/eve_online/standing.rb |
eve_online-0.9.0 | lib/eve_online/standing.rb |