Class: FiresideFinder::Gathering

Inherits:
Object
  • Object
show all
Defined in:
lib/fireside-finder/gathering.rb

Constant Summary collapse

@@all =
[]

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGathering

Returns a new instance of Gathering.



7
8
9
# File 'lib/fireside-finder/gathering.rb', line 7

def initialize
  @name = name
end

Instance Attribute Details

#addressObject

Returns the value of attribute address.



4
5
6
# File 'lib/fireside-finder/gathering.rb', line 4

def address
  @address
end

#cityObject

Returns the value of attribute city.



4
5
6
# File 'lib/fireside-finder/gathering.rb', line 4

def city
  @city
end

#dateObject

Returns the value of attribute date.



4
5
6
# File 'lib/fireside-finder/gathering.rb', line 4

def date
  @date
end

#datetimeObject

Returns the value of attribute datetime.



4
5
6
# File 'lib/fireside-finder/gathering.rb', line 4

def datetime
  @datetime
end

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/fireside-finder/gathering.rb', line 4

def description
  @description
end

Returns the value of attribute details_link.



4
5
6
# File 'lib/fireside-finder/gathering.rb', line 4

def details_link
  @details_link
end

#directionsObject

Returns the value of attribute directions.



4
5
6
# File 'lib/fireside-finder/gathering.rb', line 4

def directions
  @directions
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/fireside-finder/gathering.rb', line 4

def name
  @name
end

#venueObject

Returns the value of attribute venue.



4
5
6
# File 'lib/fireside-finder/gathering.rb', line 4

def venue
  @venue
end

Class Method Details

.allObject



11
12
13
# File 'lib/fireside-finder/gathering.rb', line 11

def self.all
  @@all
end

.resetObject



19
20
21
# File 'lib/fireside-finder/gathering.rb', line 19

def self.reset
  @@all = []
end

Instance Method Details

#saveObject



15
16
17
# File 'lib/fireside-finder/gathering.rb', line 15

def save
  @@all << self
end