Class: Hiya::Audio

Inherits:
AttachBase show all
Defined in:
lib/hiya/audio.rb

Instance Attribute Summary

Attributes inherited from Base

#api_url, #bearer_token, #response, #source

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Hiya::Base

Instance Method Details

#create(files, opts = {}) ⇒ Object

files: Array: [‘/path/to/file1’, ‘/path/to/file2’, …] opts: Hash: {

attach: Hash: {
  password: String: '1234'
  password_note: String: 'today'
  expired_num: Integer: 3600
  view_count_limit: Integer: 100
}
post: Hash: {
  content: String: 'This is post content'
}

}



17
18
19
# File 'lib/hiya/audio.rb', line 17

def create(files, opts = {})
  super(files, opts)
end