Class: HatenaGroup::Calendar::Client
- Inherits:
-
Object
- Object
- HatenaGroup::Calendar::Client
- Defined in:
- lib/hatenagroup/calendar/client.rb
Instance Attribute Summary collapse
-
#agent ⇒ Object
readonly
Returns the value of attribute agent.
-
#group ⇒ Object
readonly
Returns the value of attribute group.
Instance Method Summary collapse
- #day(d) ⇒ Object
-
#initialize(group, hatena_user_id, hatena_password) ⇒ Client
constructor
A new instance of Client.
Constructor Details
#initialize(group, hatena_user_id, hatena_password) ⇒ Client
Returns a new instance of Client.
9 10 11 12 13 14 15 16 |
# File 'lib/hatenagroup/calendar/client.rb', line 9 def initialize(group, hatena_user_id, hatena_password) @group = group @agent = ::Mechanize.new agent.log = ::Logger.new(STDERR) agent.log.level = ::Logger::INFO agent.user_agent = USER_AGENT login! hatena_user_id, hatena_password end |
Instance Attribute Details
#agent ⇒ Object (readonly)
Returns the value of attribute agent.
6 7 8 |
# File 'lib/hatenagroup/calendar/client.rb', line 6 def agent @agent end |
#group ⇒ Object (readonly)
Returns the value of attribute group.
7 8 9 |
# File 'lib/hatenagroup/calendar/client.rb', line 7 def group @group end |