Class: Zm::Client::AttachmentResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/zm/client/upload/upload.rb

Overview

class to parse upload attachment response

Instance Method Summary collapse

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

#aidObject



145
146
147
# File 'lib/zm/client/upload/upload.rb', line 145

def aid
  @str_h[:aid]
end