Module: RegApi2::Hosting

Extended by:
Hosting
Includes:
Builder
Included in:
Hosting
Defined in:
lib/reg_api2/hosting.rb

Overview

REG.API hosting category

Instance Method Summary (collapse)

Methods included from Builder

included

Instance Method Details

- (String) get_jelastic_refill_url(opts = {})

Note:

Accessibility: partners

Gets Jelastic refill URL for current reseller.

Examples:

Typical usage

puts RegApi2.get_jelastic_refill_url

Parameters:

  • opts (Hash) (defaults to: {})

Returns:

  • (String)

    Jelastic refill URL.



26
# File 'lib/reg_api2/hosting.rb', line 26

define :get_jelastic_refill_url, field: :url

- (String) get_parallelswpb_constructor_url(opts = {})

Note:

Accessibility: partners

get URL to the ParallelsWPB constructor.

Examples:

Typical usage

RegApi2.set_jelastic_refill_url url: 'http://mysite.com?service_id=<service_id>&email=<email>'

Parameters:

  • opts (Hash) (defaults to: {})

Options Hash (opts):

  • :service_id (Fixnum)

    Numeric service identifier.

Returns:

  • (String)

    URL for ParallelsWPB constructor..



46
# File 'lib/reg_api2/hosting.rb', line 46

define :get_parallelswpb_constructor_url, required: { service_id: {} }, field: :url

- (void) nop(opts = {})

Note:

Accessibility: everyone

This method returns an undefined value.

This function serves for testing purposes.

Examples:

Test

RegApi2.hosting.nop

Parameters:

  • opts (Hash) (defaults to: {})


17
# File 'lib/reg_api2/hosting.rb', line 17

define :nop

- (void) set_jelastic_refill_url(opts = {})

Note:

Accessibility: partners

This method returns an undefined value.

Sets Jelastic refill URL for current reseller.

Examples:

Typical usage

RegApi2.set_jelastic_refill_url url: 'http://mysite.com?service_id=<service_id>&email=<email>'

Parameters:

  • opts (Hash) (defaults to: {})

Options Hash (opts):

  • :url (String)

    Jelastic refill URL. You can use the keywords <service_id> and <email>, which will be replaced with the identifier of service for balance refill, and the email address used for the Jelastic account registration.



36
# File 'lib/reg_api2/hosting.rb', line 36

define :set_jelastic_refill_url, required: :url