Class: Yummly::Attribution

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(values) ⇒ Attribution

Returns a new instance of Attribution.



10
11
12
13
14
15
# File 'lib/yummly/attribution.rb', line 10

def initialize(values)
  @html = values["html"]
  @url = values["url"]
  @text = values["text"]
  @logo = values["logo"]
end

Instance Attribute Details

#htmlObject (readonly)

Returns the value of attribute html.



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

def html
  @html
end

#logoObject (readonly)

Returns the value of attribute logo.



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

def 
  @logo
end

#textObject (readonly)

Returns the value of attribute text.



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

def text
  @text
end

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end