Class: FrilansFinansAPI::ParseLog::LogRequest
- Inherits:
-
Object
- Object
- FrilansFinansAPI::ParseLog::LogRequest
- Defined in:
- lib/frilans_finans_api/parse_log.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Instance Method Summary collapse
- #access_token_request? ⇒ Boolean
-
#initialize(uri:, params:, body:, status:) ⇒ LogRequest
constructor
A new instance of LogRequest.
- #inspect ⇒ Object
Constructor Details
#initialize(uri:, params:, body:, status:) ⇒ LogRequest
Returns a new instance of LogRequest.
8 9 10 11 12 13 |
# File 'lib/frilans_finans_api/parse_log.rb', line 8 def initialize(uri:, params:, body:, status:) @uri = uri @params = params @body = body @status = status end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
6 7 8 |
# File 'lib/frilans_finans_api/parse_log.rb', line 6 def body @body end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
6 7 8 |
# File 'lib/frilans_finans_api/parse_log.rb', line 6 def params @params end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/frilans_finans_api/parse_log.rb', line 6 def status @status end |
#uri ⇒ Object (readonly)
Returns the value of attribute uri.
6 7 8 |
# File 'lib/frilans_finans_api/parse_log.rb', line 6 def uri @uri end |
Instance Method Details
#access_token_request? ⇒ Boolean
15 16 17 |
# File 'lib/frilans_finans_api/parse_log.rb', line 15 def access_token_request? uri.include?('auth/accesstoken') end |
#inspect ⇒ Object
19 20 21 22 23 24 25 26 27 |
# File 'lib/frilans_finans_api/parse_log.rb', line 19 def inspect parts = [ "status: #{status}", "uri: #{uri}", "params: #{params}", "body: #{body}" ].join(', ') "#<#{self.class.name} #{parts}" end |