Class: HatenaGroup::Calendar::Keyword

Inherits:
Object
  • Object
show all
Defined in:
lib/hatenagroup/calendar/keyword.rb

Instance Method Summary collapse

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

#bodyObject



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