Class: Atndr::Event

Inherits:
Object
  • Object
show all
Defined in:
lib/atndr/event.rb

Direct Known Subclasses

User

Constant Summary collapse

URL_BASE =
"http://api.atnd.org/events/"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEvent

Returns a new instance of Event.



11
12
13
# File 'lib/atndr/event.rb', line 11

def initialize
  @options = {}
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



9
10
11
# File 'lib/atndr/event.rb', line 9

def options
  @options
end

Instance Method Details

#get_event(opt = {}) ⇒ Object



15
16
17
18
# File 'lib/atndr/event.rb', line 15

def get_event(opt = {})
  @options = opt
  send_api
end