Class: Evtfl::Concerts
- Inherits:
-
Object
- Object
- Evtfl::Concerts
- Defined in:
- lib/evtfl/concerts.rb
Instance Attribute Summary collapse
-
#city ⇒ Object
readonly
Returns the value of attribute city.
-
#country ⇒ Object
readonly
Returns the value of attribute country.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Concerts
constructor
A new instance of Concerts.
Constructor Details
#initialize(args = {}) ⇒ Concerts
Returns a new instance of Concerts.
15 16 17 18 19 20 21 |
# File 'lib/evtfl/concerts.rb', line 15 def initialize(args = {}) @country = args['country'] @city = args['city'] @url = args['url'] @title = args['title'] @id = args['id'] end |
Instance Attribute Details
#city ⇒ Object (readonly)
Returns the value of attribute city.
13 14 15 |
# File 'lib/evtfl/concerts.rb', line 13 def city @city end |
#country ⇒ Object (readonly)
Returns the value of attribute country.
13 14 15 |
# File 'lib/evtfl/concerts.rb', line 13 def country @country end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
13 14 15 |
# File 'lib/evtfl/concerts.rb', line 13 def id @id end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
13 14 15 |
# File 'lib/evtfl/concerts.rb', line 13 def title @title end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
13 14 15 |
# File 'lib/evtfl/concerts.rb', line 13 def url @url end |