class Axie::Account
Attributes
data[R]
total[R]
Public Class Methods
from_response(response)
click to toggle source
# File lib/axie/objects/account.rb, line 5 def self.from_response(response) body = response.body new( data: body, total: body.dig("total") ) end
new(data:, total:)
click to toggle source
# File lib/axie/objects/account.rb, line 13 def initialize(data:, total:) @data = data @total = total end
Public Instance Methods
get_slp_balance()
click to toggle source
# File lib/axie/objects/account.rb, line 18 def get_slp_balance total end