Class: Source
- Inherits:
-
Object
- Object
- Source
- Defined in:
- lib/source.rb
Instance Attribute Summary collapse
-
#category ⇒ Object
Returns the value of attribute category.
-
#country ⇒ Object
Returns the value of attribute country.
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#language ⇒ Object
Returns the value of attribute language.
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(id, name, description, url, category, language, country) ⇒ Source
constructor
A new instance of Source.
Constructor Details
#initialize(id, name, description, url, category, language, country) ⇒ Source
Returns a new instance of Source.
10 11 12 13 14 15 16 17 18 |
# File 'lib/source.rb', line 10 def initialize(id, name, description, url, category, language, country) @id = id @name = name @description = description @url = url @category = category @language = language @country = country end |
Instance Attribute Details
#category ⇒ Object
Returns the value of attribute category.
6 7 8 |
# File 'lib/source.rb', line 6 def category @category end |
#country ⇒ Object
Returns the value of attribute country.
8 9 10 |
# File 'lib/source.rb', line 8 def country @country end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/source.rb', line 4 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
2 3 4 |
# File 'lib/source.rb', line 2 def id @id end |
#language ⇒ Object
Returns the value of attribute language.
7 8 9 |
# File 'lib/source.rb', line 7 def language @language end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/source.rb', line 3 def name @name end |
#url ⇒ Object
Returns the value of attribute url.
5 6 7 |
# File 'lib/source.rb', line 5 def url @url end |