Class: Yummly::Attribution
- Inherits:
-
Object
- Object
- Yummly::Attribution
- Defined in:
- lib/yummly/attribution.rb
Instance Attribute Summary collapse
-
#html ⇒ Object
readonly
Returns the value of attribute html.
-
#logo ⇒ Object
readonly
Returns the value of attribute logo.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(values) ⇒ Attribution
constructor
A new instance of Attribution.
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
#html ⇒ Object (readonly)
Returns the value of attribute html.
5 6 7 |
# File 'lib/yummly/attribution.rb', line 5 def html @html end |
#logo ⇒ Object (readonly)
Returns the value of attribute logo.
5 6 7 |
# File 'lib/yummly/attribution.rb', line 5 def logo @logo end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/yummly/attribution.rb', line 5 def text @text end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
5 6 7 |
# File 'lib/yummly/attribution.rb', line 5 def url @url end |