Class: Atndr::User

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

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Event

#get_event

Constructor Details

#initializeUser

Returns a new instance of User.



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

def initialize
  @options = {}
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#get_user(opt = {}) ⇒ Object



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

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