Class: Sequence::Contract::ClientModule

Inherits:
Sequence::ClientModule show all
Defined in:
lib/sequence/contract.rb

Instance Attribute Summary

Attributes inherited from Sequence::ClientModule

#client

Instance Method Summary collapse

Methods inherited from Sequence::ClientModule

#initialize

Constructor Details

This class inherits a constructor from Sequence::ClientModule

Instance Method Details

#query(opts = {}) ⇒ Query

Executes a query, returning an enumerable over individual contracts.

Parameters:

  • opts (Hash) (defaults to: {})

    Options hash

Options Hash (opts):

  • filter (String)

    A filter expression.

  • filter_params (Array<String|Integer>)

    A list of values that will be interpolated into the filter expression.

  • timestamp (Integer)

    A millisecond Unix timestamp. Indicates that the query should be run over the state of the ledger at a given point in time.

  • ] (Integer)

    page_size The number of items to return in the result set.

Returns:



77
78
79
80
81
82
83
84
85
86
87
# File 'lib/sequence/contract.rb', line 77

def query(opts = {})
  validate_inclusion_of!(
    opts,
    :filter,
    :filter_params,
    :timestamp,
    :page_size,
    :after,
  )
  Query.new(client, opts)
end