Class: BoxnetApi::Ticket
- Inherits:
-
Object
- Object
- BoxnetApi::Ticket
- Defined in:
- lib/boxnet.rb
Instance Attribute Summary collapse
-
#ticket ⇒ Object
readonly
Returns the value of attribute ticket.
Instance Method Summary collapse
-
#initialize(data) ⇒ Ticket
constructor
A new instance of Ticket.
- #url ⇒ Object
Constructor Details
#initialize(data) ⇒ Ticket
Returns a new instance of Ticket.
159 160 161 162 |
# File 'lib/boxnet.rb', line 159 def initialize(data) @ticket = data["response"]["ticket"] @status = data["response"]["status"] end |
Instance Attribute Details
#ticket ⇒ Object (readonly)
Returns the value of attribute ticket.
157 158 159 |
# File 'lib/boxnet.rb', line 157 def ticket @ticket end |
Instance Method Details
#url ⇒ Object
164 165 166 |
# File 'lib/boxnet.rb', line 164 def url "https://www.box.net/api/1.0/auth/#{@ticket}" end |