Sha256: cb7a524f86e4eb63eda0f0392f20c4249f5b7602d46b257c5b31161df857adf1

Contents?: true

Size: 412 Bytes

Versions: 13

Compression:

Stored size: 412 Bytes

Contents

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

    attr_accessor :hash, :json_payload

    def initialize(hash, json_payload)
      self.hash = hash
      self.json_payload = json_payload
    end

    def create!
      self.class.post("/transactions.json", body: {transaction: {tx_hash: self.hash, json_payload: json_payload}})
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

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