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



984
985
986
# File 'lib/phraseapp-ruby.rb', line 984

def audience=(val)
  super(val)
end

#business=(val) ⇒ Object



988
989
990
# File 'lib/phraseapp-ruby.rb', line 988

def business=(val)
  super(val)
end

#company_branding=(val) ⇒ Object



992
993
994
# File 'lib/phraseapp-ruby.rb', line 992

def company_branding=(val)
  super(val)
end

#formatting=(val) ⇒ Object



996
997
998
# File 'lib/phraseapp-ruby.rb', line 996

def formatting=(val)
  super(val)
end

#glossary_terms=(val) ⇒ Object



1000
1001
1002
# File 'lib/phraseapp-ruby.rb', line 1000

def glossary_terms=(val)
  super(val)
end

#grammar_consistency=(val) ⇒ Object



1004
1005
1006
# File 'lib/phraseapp-ruby.rb', line 1004

def grammar_consistency=(val)
  super(val)
end

#grammatical_person=(val) ⇒ Object



1008
1009
1010
# File 'lib/phraseapp-ruby.rb', line 1008

def grammatical_person=(val)
  super(val)
end

#literal_translation=(val) ⇒ Object



1012
1013
1014
# File 'lib/phraseapp-ruby.rb', line 1012

def literal_translation=(val)
  super(val)
end

#overall_tone=(val) ⇒ Object



1016
1017
1018
# File 'lib/phraseapp-ruby.rb', line 1016

def overall_tone=(val)
  super(val)
end

#samples=(val) ⇒ Object



1020
1021
1022
# File 'lib/phraseapp-ruby.rb', line 1020

def samples=(val)
  super(val)
end

#target_audience=(val) ⇒ Object



1024
1025
1026
# File 'lib/phraseapp-ruby.rb', line 1024

def target_audience=(val)
  super(val)
end

#title=(val) ⇒ Object



1028
1029
1030
# File 'lib/phraseapp-ruby.rb', line 1028

def title=(val)
  super(val)
end

#validateObject



1036
1037
1038
1039
1040
1041
# File 'lib/phraseapp-ruby.rb', line 1036

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

#vocabulary_type=(val) ⇒ Object



1032
1033
1034
# File 'lib/phraseapp-ruby.rb', line 1032

def vocabulary_type=(val)
  super(val)
end