Sha256: 1ca0b4f4b2d327e97373bee4839925222c9e2539ec245150a3b043157ca0fcef
Contents?: true
Size: 350 Bytes
Versions: 3
Compression:
Stored size: 350 Bytes
Contents
module Axie class Account < Object attr_reader :data, :total def self.from_response(response) body = response.body new( data: body, total: body.dig("total") ) end def initialize(data:, total:) @data = data @total = total end def get_slp_balance total end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
axie-ruby-0.2.1 | lib/axie/objects/account.rb |
axie-ruby-0.2.0 | lib/axie/objects/account.rb |
axie-0.1.0 | lib/axie/objects/account.rb |