module HaystackRuby::Types::Uri

Public Instance Methods

set_fields(str_value) click to toggle source
# File lib/haystack_ruby/types/uri.rb, line 4
def set_fields str_value
  @haystack_type = 'Uri'
  match = /\Au:(.*)\z/.match str_value
  raise HaystackRuby::Error, "invalid HaystackRuby::Types::Uri: #{str_value}" if match.nil?
  @value = match[1]
end