Class: HeyYou::Config::Nexmo

Inherits:
Object
  • Object
show all
Extended by:
Configurable
Defined in:
lib/hey_you/config/nexmo.rb

Constant Summary collapse

DEFAULTS =
{
  is_unicode: false,
  status_report_req: false,
  ttl: 259200000 # 72 hours
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNexmo

Returns a new instance of Nexmo.



15
16
17
18
19
# File 'lib/hey_you/config/nexmo.rb', line 15

def initialize
  @is_unicode = DEFAULTS[:is_unicode]
  @status_report_req = DEFAULTS[:status_report_req]
  @ttl = DEFAULTS[:ttl]
end

Instance Attribute Details

#callbackObject

Returns the value of attribute callback.



13
14
15
# File 'lib/hey_you/config/nexmo.rb', line 13

def callback
  @callback
end

#clientObject

Returns the value of attribute client.



13
14
15
# File 'lib/hey_you/config/nexmo.rb', line 13

def client
  @client
end

#fromObject

Returns the value of attribute from.



13
14
15
# File 'lib/hey_you/config/nexmo.rb', line 13

def from
  @from
end

#is_unicodeObject

Returns the value of attribute is_unicode.



13
14
15
# File 'lib/hey_you/config/nexmo.rb', line 13

def is_unicode
  @is_unicode
end

#response_handlerObject

Returns the value of attribute response_handler.



13
14
15
# File 'lib/hey_you/config/nexmo.rb', line 13

def response_handler
  @response_handler
end

#status_report_reqObject

Returns the value of attribute status_report_req.



13
14
15
# File 'lib/hey_you/config/nexmo.rb', line 13

def status_report_req
  @status_report_req
end

#ttlObject

Returns the value of attribute ttl.



13
14
15
# File 'lib/hey_you/config/nexmo.rb', line 13

def ttl
  @ttl
end