lib/yummly/source.rb in yummly-0.0.3 vs lib/yummly/source.rb in yummly-0.0.4
- old
+ new
@@ -1,19 +1,21 @@
# Contains details about the origin of the recipe.
-class Yummly::Source
+module Yummly
+ class Source
- # The original source url of this recipe.
- attr_accessor :recipe_url
+ # The original source url of this recipe.
+ attr_accessor :recipe_url
- # The url of the source site of this recipe.
- attr_accessor :site_url
+ # The url of the source site of this recipe.
+ attr_accessor :site_url
- # The display name of the source site.
- attr_accessor :display_name
+ # The display name of the source site.
+ attr_accessor :display_name
- def initialize(values)
- @recipe_url = values["sourceRecipeUrl"]
- @site_url = values["sourceSiteUrl"]
- @display_name= values["sourceDisplayName"]
- end
+ def initialize(values)
+ @recipe_url = values["sourceRecipeUrl"]
+ @site_url = values["sourceSiteUrl"]
+ @display_name= values["sourceDisplayName"]
+ end
+ end
end
\ No newline at end of file