Class: PhraseApp::KeysTagParams

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/phraseapp-ruby.rb

Instance Method Summary collapse

Instance Method Details

#locale_id=(val) ⇒ Object

:locale_id, :q, :tags,



897
898
899
# File 'lib/phraseapp-ruby.rb', line 897

def locale_id=(val)
  self.locale_id = val
end

#q=(val) ⇒ Object



901
902
903
# File 'lib/phraseapp-ruby.rb', line 901

def q=(val)
  self.q = val
end

#tags=(val) ⇒ Object



905
906
907
# File 'lib/phraseapp-ruby.rb', line 905

def tags=(val)
  self.tags = val.split(',')
end

#validate ⇒ Object



909
910
911
912
913
# File 'lib/phraseapp-ruby.rb', line 909

def validate
  if self.tags == nil
    raise PhraseApp::ParamsValidationError.new("Required parameter \"tags\" of \"keys_tagParams\" not set")
  end
end