Class: Chiketto::AttendeeProfile

Inherits:
Resource
  • Object
show all
Defined in:
lib/chiketto/attendee_profile.rb

Instance Attribute Summary collapse

Attributes inherited from Resource

#id

Instance Method Summary collapse

Methods inherited from Resource

build_query_string, endpoint, get, #initialize, open_post, paginated, post, should_paginate, token

Methods included from AttrDSL

included

Constructor Details

This class inherits a constructor from Chiketto::Resource

Instance Attribute Details

#ageObject

Returns the value of attribute age.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def age
  @age
end

#birth_dateObject

Returns the value of attribute birth_date.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def birth_date
  @birth_date
end

#blogObject

Returns the value of attribute blog.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def blog
  @blog
end

#cell_phoneObject

Returns the value of attribute cell_phone.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def cell_phone
  @cell_phone
end

#companyObject

Returns the value of attribute company.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def company
  @company
end

#emailObject

Returns the value of attribute email.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def email
  @email
end

#first_nameObject

Returns the value of attribute first_name.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def first_name
  @first_name
end

#genderObject

Returns the value of attribute gender.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def gender
  @gender
end

#job_titleObject

Returns the value of attribute job_title.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def job_title
  @job_title
end

#last_nameObject

Returns the value of attribute last_name.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def last_name
  @last_name
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def name
  @name
end

#prefixObject

Returns the value of attribute prefix.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def prefix
  @prefix
end

#suffixObject

Returns the value of attribute suffix.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def suffix
  @suffix
end

#websiteObject

Returns the value of attribute website.



3
4
5
# File 'lib/chiketto/attendee_profile.rb', line 3

def website
  @website
end

Instance Method Details

#addressesObject



18
19
20
21
22
# File 'lib/chiketto/attendee_profile.rb', line 18

def addresses
  @addresses.to_h.inject({}) do |hash, (key, address)|
    hash.merge(key.to_sym => Address.new(address.to_h))
  end
end