Class: FroyoApi::Password
Instance Attribute Summary collapse
-
#length ⇒ Object
readonly
Returns the value of attribute length.
-
#password ⇒ Object
readonly
Returns the value of attribute password.
Instance Method Summary collapse
-
#initialize(length = 8) ⇒ Password
constructor
A new instance of Password.
Methods inherited from Client
Constructor Details
#initialize(length = 8) ⇒ Password
Returns a new instance of Password.
5 6 7 8 |
# File 'lib/froyo_api/password.rb', line 5 def initialize(length = 8) @length = length @password = generate end |
Instance Attribute Details
#length ⇒ Object (readonly)
Returns the value of attribute length.
3 4 5 |
# File 'lib/froyo_api/password.rb', line 3 def length @length end |
#password ⇒ Object (readonly)
Returns the value of attribute password.
3 4 5 |
# File 'lib/froyo_api/password.rb', line 3 def password @password end |