Class: FederalRegister::HighlightedDocument::PhotoCredit

Inherits:
Object
  • Object
show all
Defined in:
lib/federal_register/highlighted_document.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



35
36
37
# File 'lib/federal_register/highlighted_document.rb', line 35

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.



35
36
37
# File 'lib/federal_register/highlighted_document.rb', line 35

def url
  @url
end