Sha256: c921ab95242e1aa73f9cbf255e0cd76467d8be311a7ea72d7c4a9106fa0ecd03

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 Bytes

Contents

# This is free and unencumbered software released into the public domain.

##
# Represents a NEAR account.
#
# @see https://nomicon.io/DataStructures/Account
class NEAR::Account
  ##
  # @param [String, #to_s] id
  def initialize(id)
    @id = id.to_s
  end

  ##
  # The account name.
  #
  # @return [String]
  attr_reader :id

  ##
  # The balance as a Ⓝ-prefixed string.
  #
  # @return [String]
  def inspect
    "Ⓝ#{@id}"
  end

  ##
  # @return [String]
  def to_s; @id; end
end # NEAR::Block

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
near-0.1.0 lib/near/account.rb