Class: AudioVision::Attribution

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/audio_vision/attribution.rb', line 4

def name
  @name
end

#roleObject

Returns the value of attribute role.



4
5
6
# File 'lib/audio_vision/attribution.rb', line 4

def role
  @role
end

#role_textObject

Returns the value of attribute role_text.



4
5
6
# File 'lib/audio_vision/attribution.rb', line 4

def role_text
  @role_text
end

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/audio_vision/attribution.rb', line 4

def url
  @url
end