class Taipu::Base
Abstract class.
Public Instance Methods
constraints()
click to toggle source
# File lib/taipu/base.rb, line 17 def constraints {} end
to_h()
click to toggle source
# File lib/taipu/base.rb, line 7 def to_h { type: to_sym }.merge(constraints) end
to_sym()
click to toggle source
# File lib/taipu/base.rb, line 13 def to_sym self.class.name.split('::').last.downcase.to_sym end