lib/voilkruby/chain.rb
# Current dynamic global properties, cached for 3 seconds.  This is useful
# for reading properties without worrying about actually fetching it over
# rpc more than needed.
Current dynamic global properties, cached for 3 seconds.  This is useful
for reading properties without worrying about actually fetching it over
rpc more than needed.
Current dynamic global properties cached for 3 seconds . This is useful for reading properties without worrying about actually fetching it over rpc more than needed .
def properties
      @properties ||= nil
      if !!@properties && Time.now.utc - Time.parse(@properties.time + 'Z') > 3
        @properties = nil
      end
      return @properties if !!@properties
      api.get_dynamic_global_properties do |properties|
        @properties = properties
      end
    end
def properties @properties ||= nil if ! ! @properties && Time . now . utc - Time . parse ( @properties . time + 'Z' ) > 3 @properties = nil end return @properties if ! ! @properties api . get_dynamic_global_properties do | properties | @properties = properties end end
Current dynamic global properties, cached for 3 seconds.
Current dynamic global properties cached for 3 seconds .