Sha256: d8eb83b88e9b3215b7927bd487c75969fa2b4a80ab3b625a7c9d3515d6b321b0
Contents?: true
Size: 652 Bytes
Versions: 8
Compression:
Stored size: 652 Bytes
Contents
# frozen_string_literal: true module Alpaca module Trade module Api class Asset attr_reader :id, :asset_class, :exchange, :symbol, :status, :tradable, :marginable, :shortable, :easy_to_borrow def initialize(json) @id = json['id'] @asset_class = json['class'] @exchange = json['exchange'] @symbol = json['symbol'] @status = json['status'] @tradable = json['tradable'] @marginable = json['marginable'] @shortable = json['shortable'] @easy_to_borrow = json['easy_to_borrow'] end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems