Class: RSSFeed::RSSTextInput

Inherits:
Object
  • Object
show all
Defined in:
lib/rss_feed/rss_text_input.rb

Instance Method Summary collapse

Constructor Details

#initialize(node) ⇒ RSSTextInput

Initializes the text input element.



4
5
6
# File 'lib/rss_feed/rss_text_input.rb', line 4

def initialize(node)
  @node = node
end

Instance Method Details

#descriptionObject

Description (required)



14
15
16
# File 'lib/rss_feed/rss_text_input.rb', line 14

def description
  @node.at_xpath("description").content
end

Link (required)



24
25
26
# File 'lib/rss_feed/rss_text_input.rb', line 24

def link
  @node.at_xpath("link").content
end

#nameObject

Name (required)



19
20
21
# File 'lib/rss_feed/rss_text_input.rb', line 19

def name 
  @node.at_xpath("name").content
end

#titleObject

Title (required)



9
10
11
# File 'lib/rss_feed/rss_text_input.rb', line 9

def title
  @node.at_xpath("title").content
end