Class: MeetingFinder::Meeting

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Meeting

Returns a new instance of Meeting.



4
5
6
7
8
9
10
11
12
# File 'lib/meeting_finder/meeting.rb', line 4

def initialize(attributes={})
  @name = attributes['name']
  @location = attributes['location']
  @address = attributes['address']
  @day = attributes['day']
  @time = attributes['time']
  @lat = attributes['lat']
  @lng = attributes['lng']
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



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

def address
  @address
end

#dayObject (readonly)

Returns the value of attribute day.



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

def day
  @day
end

#latObject (readonly)

Returns the value of attribute lat.



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

def lat
  @lat
end

#lngObject (readonly)

Returns the value of attribute lng.



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

def lng
  @lng
end

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#timeObject (readonly)

Returns the value of attribute time.



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

def time
  @time
end