Class: BMC::SMS::ApplicationSMS

Inherits:
Object
  • Object
show all
Defined in:
app/sms/bmc/sms/application_sms.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ ApplicationSMS

Returns a new instance of ApplicationSMS.



4
5
6
# File 'app/sms/bmc/sms/application_sms.rb', line 4

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



2
3
4
# File 'app/sms/bmc/sms/application_sms.rb', line 2

def options
  @options
end

Class Method Details

.method_missing(m) ⇒ Object



30
31
32
33
34
35
36
# File 'app/sms/bmc/sms/application_sms.rb', line 30

def method_missing(m, ...)
  if respond_to_missing?(m)
    new(action_name: m).public_send(m, ...)
  else
    super
  end
end

.respond_to_missing?(m, include_private = false) ⇒ Boolean

Returns:

  • (Boolean)


38
39
40
# File 'app/sms/bmc/sms/application_sms.rb', line 38

def respond_to_missing?(m, include_private = false)
  super || public_instance_methods.include?(m)
end