Class: Zm::Client::AttachmentResponse
- Inherits:
-
Object
- Object
- Zm::Client::AttachmentResponse
- Defined in:
- lib/zm/client/upload/upload.rb
Overview
class to parse upload attachment response
Instance Method Summary collapse
- #aid ⇒ Object
-
#initialize(str) ⇒ AttachmentResponse
constructor
A new instance of AttachmentResponse.
Constructor Details
#initialize(str) ⇒ AttachmentResponse
Returns a new instance of AttachmentResponse.
140 141 142 143 |
# File 'lib/zm/client/upload/upload.rb', line 140 def initialize(str) @str = str @str_h = JSON.parse(str[str.index('['), str.length], symbolize_names: true).first end |
Instance Method Details
#aid ⇒ Object
145 146 147 |
# File 'lib/zm/client/upload/upload.rb', line 145 def aid @str_h[:aid] end |