Class: KodiClient::KodiRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/kodi_client/kodi_request.rb

Overview

represents a kodi requests

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kodi_id, method, params = {}, jsonrpc = '2.0') ⇒ KodiRequest

Returns a new instance of KodiRequest.



9
10
11
12
13
14
# File 'lib/kodi_client/kodi_request.rb', line 9

def initialize(kodi_id, method, params = {}, jsonrpc = '2.0')
  @id = kodi_id
  @jsonrpc = jsonrpc
  @method = method
  @params = params
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/kodi_client/kodi_request.rb', line 7

def id
  @id
end

#jsonrpcObject

Returns the value of attribute jsonrpc.



7
8
9
# File 'lib/kodi_client/kodi_request.rb', line 7

def jsonrpc
  @jsonrpc
end

#methodObject

Returns the value of attribute method.



7
8
9
# File 'lib/kodi_client/kodi_request.rb', line 7

def method
  @method
end

#paramsObject

Returns the value of attribute params.



7
8
9
# File 'lib/kodi_client/kodi_request.rb', line 7

def params
  @params
end