Class: Yummly::Source
- Inherits:
-
Object
- Object
- Yummly::Source
- Defined in:
- lib/yummly/source.rb
Overview
Contains details about the origin of the recipe.
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.
13 14 15 16 17 |
# File 'lib/yummly/source.rb', line 13 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.
11 12 13 |
# File 'lib/yummly/source.rb', line 11 def display_name @display_name end |
#recipe_url ⇒ Object
The original source url of this recipe.
5 6 7 |
# File 'lib/yummly/source.rb', line 5 def recipe_url @recipe_url end |
#site_url ⇒ Object
The url of the source site of this recipe.
8 9 10 |
# File 'lib/yummly/source.rb', line 8 def site_url @site_url end |