Class: FroyoApi::Password

Inherits:
Client
  • Object
show all
Defined in:
lib/froyo_api/password.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Client

#request

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

#lengthObject (readonly)

Returns the value of attribute length.



3
4
5
# File 'lib/froyo_api/password.rb', line 3

def length
  @length
end

#passwordObject (readonly)

Returns the value of attribute password.



3
4
5
# File 'lib/froyo_api/password.rb', line 3

def password
  @password
end