Class: Myra::Request::HTTP
- Inherits:
-
Object
- Object
- Myra::Request::HTTP
- Defined in:
- lib/myra/request/http.rb
Instance Method Summary collapse
-
#initialize(request) ⇒ HTTP
constructor
A new instance of HTTP.
- #response ⇒ Object
Constructor Details
#initialize(request) ⇒ HTTP
Returns a new instance of HTTP.
8 9 10 11 12 13 14 |
# File 'lib/myra/request/http.rb', line 8 def initialize(request) @request = request @signature = Signature.new( secret: Myra.configuration.api_secret, date: request.date ) end |
Instance Method Details
#response ⇒ Object
16 17 18 |
# File 'lib/myra/request/http.rb', line 16 def response @response ||= perform_request end |