class Ralyxa::ResponseEntities::Directives::Audio::AudioItem

Public Class Methods

as_hash(stream) click to toggle source
# File lib/ralyxa/response_entities/directives/audio/audio_item.rb, line 16
def self.as_hash(stream)
  new(stream).to_h
end
new(stream) click to toggle source
# File lib/ralyxa/response_entities/directives/audio/audio_item.rb, line 6
def initialize(stream)
  @stream = stream
end

Public Instance Methods

to_h() click to toggle source
# File lib/ralyxa/response_entities/directives/audio/audio_item.rb, line 10
def to_h
  {}.tap do |audio_item|
    audio_item['stream'] = @stream.to_h
  end
end