Class: FederalRegister::HighlightedDocument::PhotoCredit
- Inherits:
-
Object
- Object
- FederalRegister::HighlightedDocument::PhotoCredit
- Defined in:
- lib/federal_register/highlighted_document.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ PhotoCredit
constructor
A new instance of PhotoCredit.
Constructor Details
#initialize(attributes) ⇒ PhotoCredit
Returns a new instance of PhotoCredit.
37 38 39 40 |
# File 'lib/federal_register/highlighted_document.rb', line 37 def initialize(attributes) @name = attributes['name'] @url = attributes['url'] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
35 36 37 |
# File 'lib/federal_register/highlighted_document.rb', line 35 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
35 36 37 |
# File 'lib/federal_register/highlighted_document.rb', line 35 def url @url end |