Class: Crowdin::Web::SendRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/crowdin-api/core/send_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(request, file_destination = nil) ⇒ SendRequest

Returns a new instance of SendRequest.



8
9
10
11
12
# File 'lib/crowdin-api/core/send_request.rb', line 8

def initialize(request, file_destination = nil)
  @request          = request
  @file_destination = file_destination
  @errors           = []
end

Instance Attribute Details

#requestObject (readonly)

Returns the value of attribute request.



6
7
8
# File 'lib/crowdin-api/core/send_request.rb', line 6

def request
  @request
end

Instance Method Details

#performObject



14
15
16
# File 'lib/crowdin-api/core/send_request.rb', line 14

def perform
  parse_response(process_request)
end