Class: MeetupCli::Meetup

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#aboutObject

Returns the value of attribute about.



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

def about
  @about
end

#attendeesObject

Returns the value of attribute attendees.



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

def attendees
  @attendees
end

#hostObject

Returns the value of attribute host.



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

def host
  @host
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#time_objectObject

Returns the value of attribute time_object.



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

def time_object
  @time_object
end

#upcomingObject

Returns the value of attribute upcoming.



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

def upcoming
  @upcoming
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end

#venueObject

Returns the value of attribute venue.



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

def venue
  @venue
end

Instance Method Details

#displayObject



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'lib/meetup_cli/meetup.rb', line 5

def display
  puts "----------------------------------------------------------"
  puts "Upcoming Meetup in the Neighborhood"
  puts "----------------------------------------------------------"
  puts "Name: #{@name}"
  puts "Hosted By: #{@host}"
  puts "Time: #{@time_object}"
  puts "Venue: #{@venue}"
  puts "--------------------------------------------------------------------------------------------------------------------------"
  puts "#{@attendees}"
  puts "#{@about}"
  puts "--------------------------------------------------------------------------------------------------------------------------"
end