class Phraseapp::Rest::Parameter::Download

Constants

FILE_FORMAT

Attributes

file_format[R]

Public Class Methods

new(file_format: 'simple_json') click to toggle source
# File lib/phraseapp-rest/parameter/download.rb, line 13
def initialize(file_format: 'simple_json')
  self.file_format = file_format
end

Public Instance Methods

file_format=(format) click to toggle source
# File lib/phraseapp-rest/parameter/download.rb, line 17
def file_format=(format)
  raise "file format #{format} not supported" unless FILE_FORMAT.include?(format)

  @file_format = format
end

Protected Instance Methods

params() click to toggle source
# File lib/phraseapp-rest/parameter/download.rb, line 25
def params
  %w(file_format)
end