Module: SmsManager::Configurable

Included in:
SmsManager
Defined in:
lib/sms_manager/configurable.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#hashed_password=(value) ⇒ Object (writeonly)

Sets the attribute hashed_password

Parameters:

  • value

    the value to set the attribute hashed_password to.



5
6
7
# File 'lib/sms_manager/configurable.rb', line 5

def hashed_password=(value)
  @hashed_password = value
end

#username=(value) ⇒ Object (writeonly)

Sets the attribute username

Parameters:

  • value

    the value to set the attribute username to.



5
6
7
# File 'lib/sms_manager/configurable.rb', line 5

def username=(value)
  @username = value
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



7
8
9
10
11
# File 'lib/sms_manager/configurable.rb', line 7

def configure
  yield self
  validate_credential_type!
  self
end