Sha256: b3d49118854257f5410b9a71a02d2e8788b5f2773df257e07bed975bdf6f69c9

Contents?: true

Size: 298 Bytes

Versions: 13

Compression:

Stored size: 298 Bytes

Contents

module MastercoinWallet
  class Address
    include HTTParty
    base_uri 'mastercoin-explorer.com/api/v1/'

    attr_accessor :address

    def initialize(address)
      self.address = address
    end

    def find
      self.class.get("/addresses/#{self.address}/unspent.json")
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
mastercoin-wallet-0.0.13 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.12 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.11 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.10 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.9 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.8 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.7 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.6 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.5 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.4 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.3 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.2 lib/mastercoin-wallet/models/address.rb
mastercoin-wallet-0.0.1 lib/mastercoin-wallet/models/address.rb