lib/sched/event.rb in sched-0.1.4 vs lib/sched/event.rb in sched-0.1.5
- old
+ new
@@ -2,28 +2,17 @@
class Event
SCHED_ATTRIBUTES = [
# Required
:session_key, :name, :session_start, :session_end, :session_type,
# Optional
- :session_subtype, :description, :panelists, :url, :media_url, :venue,
- :address, :map, :tags, :active,
- # WTF
- :event_key
+ :session_subtype, :description, :panelists, :url, :media_url, :venue, :address, :map, :tags, :active
]
- SCHED_ATTRIBUTES.each { |attribute| attr_accessor attribute }
+ SCHED_ATTRIBUTES.each{ |attribute| attr_accessor attribute }
attr_accessor :client
def initialize(session_key, client=nil)
@session_key = session_key
@client = client
- end
-
- def event_key
- session_key
- end
-
- def event_key=(new_key)
- self.session_key = new_key
end
def get_attribute(key)
self.send("#{key}")
end