Class: Pexels::Client::Request
- Inherits:
-
Object
- Object
- Pexels::Client::Request
- Defined in:
- lib/pexels/client/request.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#method ⇒ Object
readonly
Returns the value of attribute method.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(api_key, path, method, params) ⇒ Request
constructor
A new instance of Request.
Constructor Details
#initialize(api_key, path, method, params) ⇒ Request
Returns a new instance of Request.
8 9 10 11 12 13 |
# File 'lib/pexels/client/request.rb', line 8 def initialize(api_key, path, method, params) @api_key = api_key @path = path @method = method @params = params end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/pexels/client/request.rb', line 6 def api_key @api_key end |
#method ⇒ Object (readonly)
Returns the value of attribute method.
6 7 8 |
# File 'lib/pexels/client/request.rb', line 6 def method @method end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
6 7 8 |
# File 'lib/pexels/client/request.rb', line 6 def params @params end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
6 7 8 |
# File 'lib/pexels/client/request.rb', line 6 def path @path end |