Module: HaystackRuby::Types::Str
- Defined in:
- lib/haystack_ruby/types/str.rb
Instance Method Summary collapse
Instance Method Details
#set_fields(str_value) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/haystack_ruby/types/str.rb', line 4 def set_fields str_value @haystack_type = 'Str' match = /\As:(.*)\z/.match str_value raise "invalid HaystackRuby::Types::Str: #{str_value}" if match.nil? @value = match[1] end |