Class: InertiaRails::OnceProp

Inherits:
BaseProp
  • Object
show all
Includes:
PropOnceable
Defined in:
lib/inertia_rails/once_prop.rb

Instance Attribute Summary

Attributes included from PropOnceable

#once_expires_in, #once_key

Instance Method Summary collapse

Methods included from PropOnceable

#expires_at, #fresh?, #once?

Methods inherited from BaseProp

#call

Constructor Details

#initialize(&block) ⇒ OnceProp

Returns a new instance of OnceProp.



7
8
9
10
# File 'lib/inertia_rails/once_prop.rb', line 7

def initialize(**, &block)
  @once = true
  super(&block)
end