Class: Hiya::Audio
- Inherits:
-
AttachBase
- Object
- Base
- AttachBase
- Hiya::Audio
- Defined in:
- lib/hiya/audio.rb
Instance Attribute Summary
Attributes inherited from Base
#api_url, #bearer_token, #response, #source
Instance Method Summary collapse
-
#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’ } }.
Methods inherited from Base
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 |