Class: Moceansdk::Modules::Voice::McObject::Sleep

Inherits:
AbstractMc
  • Object
show all
Defined in:
lib/moceansdk/modules/voice/mc_object/sleep.rb

Instance Method Summary collapse

Methods inherited from AbstractMc

#get_request_data, #initialize

Constructor Details

This class inherits a constructor from Moceansdk::Modules::Voice::McObject::AbstractMc

Instance Method Details

#actionObject



15
16
17
# File 'lib/moceansdk/modules/voice/mc_object/sleep.rb', line 15

def action
  'sleep'
end

#duration=(param) ⇒ Object



7
8
9
# File 'lib/moceansdk/modules/voice/mc_object/sleep.rb', line 7

def duration=(param)
  @params[:duration] = param
end

#required_keyObject



11
12
13
# File 'lib/moceansdk/modules/voice/mc_object/sleep.rb', line 11

def required_key
  ['duration']
end