Class: Yummly::Source
- Inherits:
-
Object
- Object
- Yummly::Source
- Defined in:
- lib/yummly/source.rb
Instance Attribute Summary collapse
-
#display_name ⇒ Object
The display name of the source site.
-
#recipe_url ⇒ Object
The original source url of this recipe.
-
#site_url ⇒ Object
The url of the source site of this recipe.
Instance Method Summary collapse
-
#initialize(values) ⇒ Source
constructor
A new instance of Source.
Constructor Details
#initialize(values) ⇒ Source
Returns a new instance of Source.
14 15 16 17 18 |
# File 'lib/yummly/source.rb', line 14 def initialize(values) @recipe_url = values["sourceRecipeUrl"] @site_url = values["sourceSiteUrl"] @display_name= values["sourceDisplayName"] end |
Instance Attribute Details
#display_name ⇒ Object
The display name of the source site.
12 13 14 |
# File 'lib/yummly/source.rb', line 12 def display_name @display_name end |
#recipe_url ⇒ Object
The original source url of this recipe.
6 7 8 |
# File 'lib/yummly/source.rb', line 6 def recipe_url @recipe_url end |
#site_url ⇒ Object
The url of the source site of this recipe.
9 10 11 |
# File 'lib/yummly/source.rb', line 9 def site_url @site_url end |