class TonSdk::Net::FieldAggregation
Constants
- AGGREGATION_FN_VALUES
Attributes
field[R]
fn[R]
Public Class Methods
new(field:, fn:)
click to toggle source
# File lib/ton_sdk_client/net.rb, line 154 def initialize(field:, fn:) unless AGGREGATION_FN_VALUES.include?(fn) raise ArgumentError.new("aggregate function #{fn} doesn't exist; existing values: #{AGGREGATION_FN_VALUES}") end @field = field @fn = fn end
Public Instance Methods
to_h()
click to toggle source
# File lib/ton_sdk_client/net.rb, line 162 def to_h { field: @field, fn: @fn.to_s.upcase } end