Class: Tui::Authorization::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/tui/authorization/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#headersObject (readonly)

Returns the value of attribute headers.



5
6
7
# File 'lib/tui/authorization/response.rb', line 5

def headers
  @headers
end

#short_urlObject (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_urlObject (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