Class: PhraseApp::RequestParams::StyleguideParams

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

Overview

StyleguideParams

Parameters:

audience

Audience description

business

Description of the business

company_branding

Company branding to remain consistent.

formatting

Formatting requirements and character limitations.

glossary_terms

List of terms and/or phrases that need to be translated consistently.

grammar_consistency

Formal or informal pronouns, consistent conjugation, grammatical gender

grammatical_person

Can be one of: not_specified, first_person_singular, second_person_singular, third_person_singular_masculine, third_person_singular_feminine, third_person_singular_neuter, first_person_plural, second_person_plural, third_person_plural.

literal_translation

Can be one of: Cultural/Conversational, Literal, Neutral.

overall_tone

Tone requirement descriptions

samples

Provide links to sample product pages, FAQ pages, etc. to give the translator a point of reference. You can also provide past translations. Even snippets or short paragraphs are helpful for maintaining consistency.

target_audience

Can be one of: not_specified, children, teenager, young_adults, adults, old_adults.

title

Style guide title

vocabulary_type

Can be one of: not_specified, popular, technical, fictional.

Instance Method Summary collapse

Instance Method Details

#audience=(val) ⇒ Object



851
852
853
# File 'lib/phraseapp-ruby.rb', line 851

def audience=(val)
  super(val)
end

#business=(val) ⇒ Object



855
856
857
# File 'lib/phraseapp-ruby.rb', line 855

def business=(val)
  super(val)
end

#company_branding=(val) ⇒ Object



859
860
861
# File 'lib/phraseapp-ruby.rb', line 859

def company_branding=(val)
  super(val)
end

#formatting=(val) ⇒ Object



863
864
865
# File 'lib/phraseapp-ruby.rb', line 863

def formatting=(val)
  super(val)
end

#glossary_terms=(val) ⇒ Object



867
868
869
# File 'lib/phraseapp-ruby.rb', line 867

def glossary_terms=(val)
  super(val)
end

#grammar_consistency=(val) ⇒ Object



871
872
873
# File 'lib/phraseapp-ruby.rb', line 871

def grammar_consistency=(val)
  super(val)
end

#grammatical_person=(val) ⇒ Object



875
876
877
# File 'lib/phraseapp-ruby.rb', line 875

def grammatical_person=(val)
  super(val)
end

#literal_translation=(val) ⇒ Object



879
880
881
# File 'lib/phraseapp-ruby.rb', line 879

def literal_translation=(val)
  super(val)
end

#overall_tone=(val) ⇒ Object



883
884
885
# File 'lib/phraseapp-ruby.rb', line 883

def overall_tone=(val)
  super(val)
end

#samples=(val) ⇒ Object



887
888
889
# File 'lib/phraseapp-ruby.rb', line 887

def samples=(val)
  super(val)
end

#target_audience=(val) ⇒ Object



891
892
893
# File 'lib/phraseapp-ruby.rb', line 891

def target_audience=(val)
  super(val)
end

#title=(val) ⇒ Object



895
896
897
# File 'lib/phraseapp-ruby.rb', line 895

def title=(val)
  super(val)
end

#validateObject



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

def validate
  
  if title == nil || title == "" 
    raise PhraseApp::ParamsHelpers::ParamsValidationError.new("Required parameter \"title\" of \"StyleguideParams\" not set")
  end
end

#vocabulary_type=(val) ⇒ Object



899
900
901
# File 'lib/phraseapp-ruby.rb', line 899

def vocabulary_type=(val)
  super(val)
end