Class: Flexipass::Door

Inherits:
Object
  • Object
show all
Defined in:
lib/flexipass/door.rb

Overview

Represents a door in the Flexipass system.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Door

Initializes a new instance of the Door class.

Parameters:

  • client (Object)

    The client object used to communicate with the Flexipass API.



7
8
9
# File 'lib/flexipass/door.rb', line 7

def initialize(client)
  @client = client
end

Instance Method Details

#listObject

Retrieves a list of doors

Returns:

  • (Object)

    The response object containing the list of doors.



14
15
16
# File 'lib/flexipass/door.rb', line 14

def list
  @client.send_request('GET', '/Flexipass/rest/webapi/getDoorList')
end