Sha256: 247ff2abd2527c773306d244558f72d47fb929c31532b7cceeba896c24251a3f

Contents?: true

Size: 512 Bytes

Versions: 1

Compression:

Stored size: 512 Bytes

Contents

module EveOnline
  module ESI
    module Models
      class LoyaltyPoint
        attr_reader :options

        def initialize(options)
          @options = options
        end

        def as_json
          {
            corporation_id: corporation_id,
            loyalty_points: loyalty_points
          }
        end

        def corporation_id
          options.fetch('corporation_id')
        end

        def loyalty_points
          options.fetch('loyalty_points')
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eve_online-0.11.0 lib/eve_online/esi/models/loyalty_point.rb