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.



49
50
51
# File 'lib/hatenadiary.rb', line 49

def password
  @password
end

#usernameObject (readonly)

Returns the value of attribute username.



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

def username
  @username
end

Instance Method Details

#set_account(username, password) ⇒ Object



42
43
44
45
46
# File 'lib/hatenadiary.rb', line 42

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