Class: Zusaar::Event

Inherits:
Identity show all
Defined in:
lib/zusaar/event.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Identity

#==

Methods inherited from Base

attr_reader

Constructor Details

#initialize(attrs = {}) ⇒ Event

Returns a new instance of Event.



12
13
14
15
16
17
18
19
20
21
# File 'lib/zusaar/event.rb', line 12

def initialize(attrs = {})

  if attrs['users']
    @users = attrs['users'].map { |user|
      Zusaar::User.new(user)
    }
  end

  super(attrs)
end

Instance Attribute Details

#acceptedObject (readonly)

Returns the value of attribute accepted.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def accepted
  @accepted
end

#addressObject (readonly)

Returns the value of attribute address.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def address
  @address
end

#catchObject (readonly)

Returns the value of attribute catch.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def catch
  @catch
end

#descriptionObject (readonly)

Returns the value of attribute description.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def description
  @description
end

#ended_atObject (readonly)

Returns the value of attribute ended_at.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def ended_at
  @ended_at
end

#event_idObject (readonly) Also known as: id

Returns the value of attribute event_id.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def event_id
  @event_id
end

#event_urlObject (readonly)

Returns the value of attribute event_url.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def event_url
  @event_url
end

#latObject (readonly)

Returns the value of attribute lat.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def lat
  @lat
end

#limitObject (readonly)

Returns the value of attribute limit.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def limit
  @limit
end

#lonObject (readonly)

Returns the value of attribute lon.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def lon
  @lon
end

#owner_idObject (readonly)

Returns the value of attribute owner_id.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def owner_id
  @owner_id
end

#owner_nicknameObject (readonly)

Returns the value of attribute owner_nickname.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def owner_nickname
  @owner_nickname
end

#owner_profile_urlObject (readonly)

Returns the value of attribute owner_profile_url.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def owner_profile_url
  @owner_profile_url
end

#pay_typeObject (readonly)

Returns the value of attribute pay_type.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def pay_type
  @pay_type
end

#placeObject (readonly)

Returns the value of attribute place.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def place
  @place
end

#started_atObject (readonly)

Returns the value of attribute started_at.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def started_at
  @started_at
end

#titleObject (readonly)

Returns the value of attribute title.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def title
  @title
end

#updated_atObject (readonly)

Returns the value of attribute updated_at.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def updated_at
  @updated_at
end

#urlObject (readonly)

Returns the value of attribute url.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def url
  @url
end

#waitingObject (readonly)

Returns the value of attribute waiting.



5
6
7
# File 'lib/zusaar/event.rb', line 5

def waiting
  @waiting
end

Instance Method Details

#usersObject



23
24
25
# File 'lib/zusaar/event.rb', line 23

def users
  @users
end