Class: KodiClient::KodiRequest
- Inherits:
-
Object
- Object
- KodiClient::KodiRequest
- Defined in:
- lib/kodi_client/kodi_request.rb
Overview
represents a kodi requests
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#jsonrpc ⇒ Object
Returns the value of attribute jsonrpc.
-
#method ⇒ Object
Returns the value of attribute method.
-
#params ⇒ Object
Returns the value of attribute params.
Instance Method Summary collapse
-
#initialize(kodi_id, method, params = {}, jsonrpc = '2.0') ⇒ KodiRequest
constructor
A new instance of KodiRequest.
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
#id ⇒ Object
Returns the value of attribute id.
7 8 9 |
# File 'lib/kodi_client/kodi_request.rb', line 7 def id @id end |
#jsonrpc ⇒ Object
Returns the value of attribute jsonrpc.
7 8 9 |
# File 'lib/kodi_client/kodi_request.rb', line 7 def jsonrpc @jsonrpc end |
#method ⇒ Object
Returns the value of attribute method.
7 8 9 |
# File 'lib/kodi_client/kodi_request.rb', line 7 def method @method end |
#params ⇒ Object
Returns the value of attribute params.
7 8 9 |
# File 'lib/kodi_client/kodi_request.rb', line 7 def params @params end |