Class: Yummly::Source

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

Overview

Contains details about the origin of the recipe.

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject

The display name of the source site.



11
12
13
# File 'lib/yummly/source.rb', line 11

def display_name
  @display_name
end

#recipe_urlObject

The original source url of this recipe.



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

def recipe_url
  @recipe_url
end

#site_urlObject

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