Class: Flexipass::Company
- Inherits:
-
Object
- Object
- Flexipass::Company
- Defined in:
- lib/flexipass/company.rb
Overview
Represents a company in the Flexipass system.
Instance Method Summary collapse
-
#details ⇒ Hash
Retrieves the details of the company.
-
#initialize(client) ⇒ Company
constructor
Initializes a new instance of the Company class.
-
#permissions ⇒ Array
Retrieves the permissions list for the company.
Constructor Details
#initialize(client) ⇒ Company
Initializes a new instance of the Company class.
7 8 9 |
# File 'lib/flexipass/company.rb', line 7 def initialize(client) @client = client end |
Instance Method Details
#details ⇒ Hash
Retrieves the details of the company.
14 15 16 |
# File 'lib/flexipass/company.rb', line 14 def details @client.send_request('GET', '/Flexipass/rest/webapi/getCompanyDetails') end |
#permissions ⇒ Array
Retrieves the permissions list for the company.
21 22 23 |
# File 'lib/flexipass/company.rb', line 21 def @client.send_request('GET', '/Flexipass/rest/webapi/getPermissionList') end |