Class: PhraseApp::LocaleFileImportParams
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- PhraseApp::LocaleFileImportParams
- Defined in:
- lib/phraseapp-ruby.rb
Instance Method Summary collapse
-
#convert_emoji=(val) ⇒ Object
:convert_emoji, :file, :format, :format_options, :locale_id, :skip_unverification, :skip_upload_tags, :tags, :update_translations,.
- #file=(val) ⇒ Object
- #format=(val) ⇒ Object
- #format_options=(val) ⇒ Object
- #locale_id=(val) ⇒ Object
- #skip_unverification=(val) ⇒ Object
- #skip_upload_tags=(val) ⇒ Object
- #tags=(val) ⇒ Object
- #update_translations=(val) ⇒ Object
- #validate ⇒ Object
Instance Method Details
#convert_emoji=(val) ⇒ Object
:convert_emoji, :file, :format, :format_options, :locale_id, :skip_unverification, :skip_upload_tags, :tags, :update_translations,
704 705 706 707 708 709 710 711 712 |
# File 'lib/phraseapp-ruby.rb', line 704 def convert_emoji=(val) if val == "true" self.convert_emoji = true elsif val == "false" #ignore self.convert_emoji = b else PhraseApp::ParamsValidationError.new("invalid value #{val}") end end |
#file=(val) ⇒ Object
714 715 716 |
# File 'lib/phraseapp-ruby.rb', line 714 def file=(val) self.file = val end |
#format=(val) ⇒ Object
718 719 720 |
# File 'lib/phraseapp-ruby.rb', line 718 def format=(val) self.format = val end |
#format_options=(val) ⇒ Object
722 723 724 |
# File 'lib/phraseapp-ruby.rb', line 722 def (val) self. = JSON.load(val) end |
#locale_id=(val) ⇒ Object
726 727 728 |
# File 'lib/phraseapp-ruby.rb', line 726 def locale_id=(val) self.locale_id = val end |
#skip_unverification=(val) ⇒ Object
730 731 732 733 734 735 736 737 738 |
# File 'lib/phraseapp-ruby.rb', line 730 def skip_unverification=(val) if val == "true" self.skip_unverification = true elsif val == "false" #ignore self.skip_unverification = b else PhraseApp::ParamsValidationError.new("invalid value #{val}") end end |
#skip_upload_tags=(val) ⇒ Object
740 741 742 743 744 745 746 747 748 |
# File 'lib/phraseapp-ruby.rb', line 740 def (val) if val == "true" self. = true elsif val == "false" #ignore self. = b else PhraseApp::ParamsValidationError.new("invalid value #{val}") end end |
#tags=(val) ⇒ Object
750 751 752 |
# File 'lib/phraseapp-ruby.rb', line 750 def (val) self. = val.split(',') end |
#update_translations=(val) ⇒ Object
754 755 756 757 758 759 760 761 762 |
# File 'lib/phraseapp-ruby.rb', line 754 def update_translations=(val) if val == "true" self.update_translations = true elsif val == "false" #ignore self.update_translations = b else PhraseApp::ParamsValidationError.new("invalid value #{val}") end end |
#validate ⇒ Object
764 765 766 767 768 |
# File 'lib/phraseapp-ruby.rb', line 764 def validate if self.file == nil raise PhraseApp::ParamsValidationError.new("Required parameter \"file\" of \"LocaleFileImportParams\" not set") end end |