Module: FileTurn

Extended by:
FileTurn
Included in:
FileTurn
Defined in:
lib/fileturn.rb,
lib/fileturn/exceptions.rb,
lib/fileturn/http_client.rb,
lib/fileturn/resources/file.rb,
lib/fileturn/resources/upload.rb,
lib/fileturn/resources/account.rb,
lib/fileturn/resources/resource.rb,
lib/fileturn/resources/notification.rb

Defined Under Namespace

Classes: Account, File, FileTurnException, HttpClient, InternalServerException, Notification, Resource, UnauthorizedException, UnprocessableEntityException, Upload

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



4
5
6
# File 'lib/fileturn.rb', line 4

def api_key
  @api_key
end

Instance Method Details

#configure(params = {}) ⇒ Object

Raises:

  • (ArgumentError)


6
7
8
9
# File 'lib/fileturn.rb', line 6

def configure(params={})
  raise ArgumentError, "missing params (api_key)" if params[:api_key].nil?
  @api_key = params[:api_key]
end