Class: HatenaGroup::Calendar::Keyword
- Inherits:
-
Object
- Object
- HatenaGroup::Calendar::Keyword
- Defined in:
- lib/hatenagroup/calendar/keyword.rb
Instance Method Summary collapse
- #body ⇒ Object
- #body=(s) ⇒ Object
-
#initialize(client, keyword) ⇒ Keyword
constructor
A new instance of Keyword.
Constructor Details
#initialize(client, keyword) ⇒ Keyword
Returns a new instance of Keyword.
4 5 6 7 |
# File 'lib/hatenagroup/calendar/keyword.rb', line 4 def initialize(client, keyword) @client = client @keyword = keyword end |
Instance Method Details
#body ⇒ Object
9 10 11 |
# File 'lib/hatenagroup/calendar/keyword.rb', line 9 def body edit_form.field_with(:name => 'body').value end |
#body=(s) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/hatenagroup/calendar/keyword.rb', line 13 def body=(s) edit_form do |form| form['body'] = s form.submit end end |