Module: Imgur

Defined in:
(ruby-imgur 0.0.1) ruby-imgur.rb
(ruby-imgur 0.0.1) ruby-imgur/util.rb
(ruby-imgur 0.0.1) ruby-imgur/model.rb
(ruby-imgur 0.0.1) ruby-imgur/client.rb
(ruby-imgur 0.0.1) ruby-imgur/version.rb
(ruby-imgur 0.0.1) ruby-imgur/response.rb
(ruby-imgur 0.0.1) ruby-imgur/client_request.rb

Overview

Author:

  • Rei_Fan49

Defined Under Namespace

Modules: Model, Request, Response Classes: BaseClient, Client

Constant Summary collapse

VERSION =

gem version

'0.0.1'
@@base_uri =

default base URI for the app.

-'https://api.imgur.com'

Class Method Summary collapse

Class Method Details

.base_uriString

Return base uri of API calls.

Returns:

  • (String)

    return base uri of API calls.

.base_uri=(value)

This method returns an undefined value.

change the base uri of Imgur calls.

.base_uri_commercial!

This method returns an undefined value.

set base uri to commercial one imgur-apiv3.p.rapidapi.com.

.base_uri_default!

This method returns an undefined value.

set base uri to default one api.imgur.com.

.safe_glob(dir, *args, **kwargs, &block) ⇒ Object

Note:

move #safe_glob, #barename, #require_ns to some common library for my own framework of work.

Note:

All the values are pure proxy of Dir#glob

a safer glob operation that escapes meta-characters on directory

Parameters:

  • dir (String)

    cue directory to start glob on (allows glob escape handle)

See Also:

  • Dir#glob