Class: Applications
- Inherits:
-
Object
- Object
- Applications
- Defined in:
- lib/coolsms/applications.rb
Instance Method Summary collapse
Instance Method Details
#fields(*keys) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/coolsms/applications.rb', line 9 def fields(*keys) field = Auth.new.auth keys.each do |key| if self.class.instance_methods.include? key field[key] = self.public_send(key) end end return field end |
#set_fields(options) ⇒ Object
3 4 5 6 7 |
# File 'lib/coolsms/applications.rb', line 3 def set_fields() .each do |key, value| self.public_send( "#{key}=", value ) if self.class.instance_methods.include? key end end |