Sha256: 3f627dbac382ae0e7f3e97231dfc4d27669c98ac40a9e92a385cf287f30464ec

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

module OpenTransact
  class Asset
    attr_accessor :url, :transaction_url, :options
    
    def initialize(url,options={})
      @url = url
      @transaction_url = options[:transaction_url]||@url
      @options = options||{}
    end
    
    def server
      @server ||= Server.new :key=>@options[:key],  :secret=>@options[:secret], :url=>@url
    end
    
    def consumer
      server && server.consumer || nil
    end
    
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opentransact-0.0.2 lib/opentransact/asset.rb