Class: PhraseApp::RequestParams::ReleasesParams

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

Overview

ReleasesParams

Parameters:

branch

Branch used for release

description

Description of the release

platforms

List of platforms the release should support.

Instance Method Summary collapse

Instance Method Details

#branch=(val) ⇒ Object



1327
1328
1329
# File 'lib/phraseapp-ruby.rb', line 1327

def branch=(val)
  super(val)
end

#description=(val) ⇒ Object



1331
1332
1333
# File 'lib/phraseapp-ruby.rb', line 1331

def description=(val)
  super(val)
end

#platforms=(val) ⇒ Object



1335
1336
1337
# File 'lib/phraseapp-ruby.rb', line 1335

def platforms=(val)
  super(val.split(','))
end

#validateObject



1339
1340
1341
1342
1343
1344
# File 'lib/phraseapp-ruby.rb', line 1339

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