Class: Feediscovery::Feed

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Feed

Returns a new instance of Feed.



6
7
8
9
10
11
# File 'lib/feediscovery.rb', line 6

def initialize(params = {})
  @href   = params["href"]
  @title  = params["title"]
  @rel    = params["rel"]
  @type   = params["type"]
end

Instance Attribute Details

#hrefObject (readonly)

Returns the value of attribute href.



5
6
7
# File 'lib/feediscovery.rb', line 5

def href
  @href
end

#relObject (readonly)

Returns the value of attribute rel.



5
6
7
# File 'lib/feediscovery.rb', line 5

def rel
  @rel
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/feediscovery.rb', line 5

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



5
6
7
# File 'lib/feediscovery.rb', line 5

def type
  @type
end