class PhraseApp::RequestParams::GlossaryTermParams

GlossaryTermParams

Parameters:

case_sensitive

Indicates whether the term is case sensitive

description

Description of term

term

Glossary term

translatable

Indicates whether the term should be used for all languages or can be translated

Public Instance Methods

case_sensitive=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 734
def case_sensitive=(val)
  if val.is_a?(TrueClass)
    super(true)
  elsif val.is_a?(FalseClass)
    return
  else
    PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
  end
end
description=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 744
def description=(val)
  super(val)
end
term=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 748
def term=(val)
  super(val)
end
translatable=(val) click to toggle source
Calls superclass method
# File lib/phraseapp-ruby.rb, line 752
def translatable=(val)
  if val.is_a?(TrueClass)
    super(true)
  elsif val.is_a?(FalseClass)
    return
  else
    PhraseApp::ParamsHelpers::ParamsValidationError.new("invalid value #{val}")
  end
end
validate() click to toggle source
# File lib/phraseapp-ruby.rb, line 762
def validate
  
  if term == nil || term == "" 
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"term\" of \"GlossaryTermParams\" not set")
  end
end