Sha256: 8dfb235d1ef572542066e44dbc91d76bcf7943c53af3c284c54ad9c600203df6

Contents?: true

Size: 1.25 KB

Versions: 16

Compression:

Stored size: 1.25 KB

Contents

# frozen_string_literal: true

module EveOnline
  module ESI
    module Models
      class WalletTransaction < Base
        def as_json
          {
            client_id: client_id,
            date: date,
            is_buy: is_buy,
            is_personal: is_personal,
            journal_ref_id: journal_ref_id,
            location_id: location_id,
            quantity: quantity,
            transaction_id: transaction_id,
            type_id: type_id,
            unit_price: unit_price
          }
        end

        def client_id
          options["client_id"]
        end

        def date
          date = options["date"]

          parse_datetime_with_timezone(date) if date
        end

        def is_buy
          options["is_buy"]
        end

        def is_personal
          options["is_personal"]
        end

        def journal_ref_id
          options["journal_ref_id"]
        end

        def location_id
          options["location_id"]
        end

        def quantity
          options["quantity"]
        end

        def transaction_id
          options["transaction_id"]
        end

        def type_id
          options["type_id"]
        end

        def unit_price
          options["unit_price"]
        end
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
eve_online-0.46.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.45.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.44.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.43.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.42.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.41.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.40.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.39.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.38.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.37.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.36.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.35.1 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.35.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.34.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.33.0 lib/eve_online/esi/models/wallet_transaction.rb
eve_online-0.32.0 lib/eve_online/esi/models/wallet_transaction.rb