Sha256: 154b0c94643a2bed897212ddf966bc73c111055692870ade85a80a18fab1ab66

Contents?: true

Size: 367 Bytes

Versions: 7

Compression:

Stored size: 367 Bytes

Contents

class CryptoPrice::Coin
  
  
  attr_accessor :name, :price, :symbol, :volume, :marketcap, :change

  @@all = []

  def initialize(symbol, name, price, change , marketcap)
    @symbol = symbol
    @name = name
    @price = price
    @change = change
    @marketcap = marketcap
    @@all << self
  end

  def self.all
    @@all
  end

  

  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
crypto_price-0.1.6 lib/crypto_price/coin.rb
crypto_price-0.1.5 lib/crypto_price/coin.rb
crypto_price-0.1.4 lib/crypto_price/coin.rb
crypto_price-0.1.3 lib/crypto_price/coin.rb
crypto_price-0.1.2 lib/crypto_price/coin.rb
crypto_price-0.1.1 lib/crypto_price/coin.rb
crypto_price-0.1.0 lib/crypto_price/coin.rb