Class: Tui::Authorization::Response
- Inherits:
-
Object
- Object
- Tui::Authorization::Response
- Defined in:
- lib/tui/authorization/response.rb
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
-
#short_url ⇒ Object
readonly
Returns the value of attribute short_url.
-
#upload_url ⇒ Object
readonly
Returns the value of attribute upload_url.
Instance Method Summary collapse
-
#initialize(json) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(json) ⇒ Response
Returns a new instance of Response.
7 8 9 10 11 |
# File 'lib/tui/authorization/response.rb', line 7 def initialize(json) @short_url = json.delete("short_url") @upload_url = json.delete("upload_url") @headers = json.delete("headers") end |
Instance Attribute Details
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
5 6 7 |
# File 'lib/tui/authorization/response.rb', line 5 def headers @headers end |
#short_url ⇒ Object (readonly)
Returns the value of attribute short_url.
5 6 7 |
# File 'lib/tui/authorization/response.rb', line 5 def short_url @short_url end |
#upload_url ⇒ Object (readonly)
Returns the value of attribute upload_url.
5 6 7 |
# File 'lib/tui/authorization/response.rb', line 5 def upload_url @upload_url end |