Exception: HatenaDiary::LoginError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/hatenadiary.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#passwordObject (readonly)

Returns the value of attribute password.



53
54
55
# File 'lib/hatenadiary.rb', line 53

def password
  @password
end

#usernameObject (readonly)

Returns the value of attribute username.



52
53
54
# File 'lib/hatenadiary.rb', line 52

def username
  @username
end

Instance Method Details

#set_account(username, password) ⇒ Object



46
47
48
49
50
# File 'lib/hatenadiary.rb', line 46

def (username, password)
  @username = username
  @password = password
  self
end