class Event

Attributes

artists[RW]
date[RW]
location[RW]
no_events_listed[RW]
title[RW]
url[RW]

Public Class Methods

all() click to toggle source
# File lib/ra_events/event.rb, line 23
def self.all
  @@all
end
clear() click to toggle source
# File lib/ra_events/event.rb, line 27
def self.clear
  self.all.clear
end
create_from_collection(events_array) click to toggle source
# File lib/ra_events/event.rb, line 17
 def self.create_from_collection(events_array)
  events_array.each do |event_hash|
    Event.new(event_hash)
  end
end
new(event_hash) click to toggle source
# File lib/ra_events/event.rb, line 9
def initialize(event_hash) 
  event_hash.each do |attribute, value|
    self.send("#{attribute}=", value)
  end
  @@all << self
end