class SmashTheState::Operation::StateType
Public Class Methods
new(block)
click to toggle source
# File lib/smash_the_state/operation/state_type.rb, line 4 def initialize(block) @schema_class = Operation::State.build(&block) end
Private Instance Methods
cast_value(attributes)
click to toggle source
# File lib/smash_the_state/operation/state_type.rb, line 10 def cast_value(attributes) @schema_class.new(attributes) end