Class: AudioVision::Attribution
- Inherits:
-
Object
- Object
- AudioVision::Attribution
- Defined in:
- lib/audio_vision/attribution.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#role ⇒ Object
Returns the value of attribute role.
-
#role_text ⇒ Object
Returns the value of attribute role_text.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Attribution
constructor
A new instance of Attribution.
Constructor Details
#initialize(attributes = {}) ⇒ Attribution
Returns a new instance of Attribution.
11 12 13 14 15 16 |
# File 'lib/audio_vision/attribution.rb', line 11 def initialize(attributes={}) @name = attributes["name"] @url = attributes["url"] @role_text = attributes["role_text"] @role = attributes["role"] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/audio_vision/attribution.rb', line 4 def name @name end |
#role ⇒ Object
Returns the value of attribute role.
4 5 6 |
# File 'lib/audio_vision/attribution.rb', line 4 def role @role end |
#role_text ⇒ Object
Returns the value of attribute role_text.
4 5 6 |
# File 'lib/audio_vision/attribution.rb', line 4 def role_text @role_text end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/audio_vision/attribution.rb', line 4 def url @url end |