Class: Source

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#categoryObject

Returns the value of attribute category.



6
7
8
# File 'lib/source.rb', line 6

def category
  @category
end

#countryObject

Returns the value of attribute country.



8
9
10
# File 'lib/source.rb', line 8

def country
  @country
end

#descriptionObject

Returns the value of attribute description.



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

def description
  @description
end

#idObject

Returns the value of attribute id.



2
3
4
# File 'lib/source.rb', line 2

def id
  @id
end

#languageObject

Returns the value of attribute language.



7
8
9
# File 'lib/source.rb', line 7

def language
  @language
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/source.rb', line 3

def name
  @name
end

#urlObject

Returns the value of attribute url.



5
6
7
# File 'lib/source.rb', line 5

def url
  @url
end