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, :file_format, :format_options, :locale_id, :skip_unverification, :skip_upload_tags, :tags, :update_translations,.
- #file=(val) ⇒ Object
- #file_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, :file_format, :format_options, :locale_id, :skip_unverification, :skip_upload_tags, :tags, :update_translations,
728 729 730 731 732 733 734 735 736 |
# File 'lib/phraseapp-ruby.rb', line 728 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
738 739 740 |
# File 'lib/phraseapp-ruby.rb', line 738 def file=(val) self.file = val end |
#file_format=(val) ⇒ Object
742 743 744 |
# File 'lib/phraseapp-ruby.rb', line 742 def file_format=(val) self.file_format = val end |
#format_options=(val) ⇒ Object
746 747 748 |
# File 'lib/phraseapp-ruby.rb', line 746 def (val) self. = JSON.load(val) end |
#locale_id=(val) ⇒ Object
750 751 752 |
# File 'lib/phraseapp-ruby.rb', line 750 def locale_id=(val) self.locale_id = val end |
#skip_unverification=(val) ⇒ Object
754 755 756 757 758 759 760 761 762 |
# File 'lib/phraseapp-ruby.rb', line 754 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
764 765 766 767 768 769 770 771 772 |
# File 'lib/phraseapp-ruby.rb', line 764 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
774 775 776 |
# File 'lib/phraseapp-ruby.rb', line 774 def (val) self. = val.split(',') end |
#update_translations=(val) ⇒ Object
778 779 780 781 782 783 784 785 786 |
# File 'lib/phraseapp-ruby.rb', line 778 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
788 789 790 791 792 |
# File 'lib/phraseapp-ruby.rb', line 788 def validate if self.file == nil raise PhraseApp::ParamsValidationError.new("Required parameter \"file\" of \"LocaleFileImportParams\" not set") end end |