ModraUp Ruby API Documentation Ruby API Reference

Class: ModraUp::Licensing::ExtensionLicense

Inherits:
Object
  • Object
show all

Overview

An extended authorization status. Returned by ModraUp::Licensing.get_extension_license.

Examples:

ModraUp::Licensing.get_extension_license("x").state == ModraUp::Licensing::LICENSED

Instance Method Summary # collapse

Instance Method Details

license.licensed? ⇒ Boolean

Returns whether the extension is authorized. The host is always true.

Returns:

  • (Boolean)

Examples:

ModraUp::Licensing.get_extension_license("x").licensed?  #=> true

license.days_remaining ⇒ Integer

Days remaining. Permanent license is 0.

Returns:

  • (Integer)

Examples:

ModraUp::Licensing.get_extension_license("x").days_remaining  #=> 0

license.state ⇒ Integer

ModraUp::Licensing::LICENSED and other status codes. This host is always licensed.

Returns:

  • (Integer)

Examples:

ModraUp::Licensing.get_extension_license("x").state == ModraUp::Licensing::LICENSED

license.error_description ⇒ String

Failure description. Is an empty string when authorized.

Returns:

  • (String)

Examples:

ModraUp::Licensing.get_extension_license("x").error_description  #=> ""