Class: Ralyxa::ResponseEntities::Directives::AudioPlayer::Stop

Inherits:
Object
  • Object
show all
Defined in:
lib/ralyxa/response_entities/directives/audio_player/stop.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.as_hashObject



12
13
14
# File 'lib/ralyxa/response_entities/directives/audio_player/stop.rb', line 12

def self.as_hash
  new.to_h
end

Instance Method Details

#to_hObject



6
7
8
9
10
# File 'lib/ralyxa/response_entities/directives/audio_player/stop.rb', line 6

def to_h
  {}.tap do |audio_player|
    audio_player['type'] = 'AudioPlayer.Stop'
  end
end