Class: PresenterProfile

Inherits:
Object
  • Object
show all
Defined in:
lib/papercall/models/presenter_profile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_hash = {}) ⇒ PresenterProfile

Returns a new instance of PresenterProfile.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/papercall/models/presenter_profile.rb', line 5

def initialize(json_hash = {})
  @name = json_hash[:name]
  @bio = json_hash[:bio]
  @twitter = json_hash[:twitter]
  @company = json_hash[:company]
  @url = json_hash[:url]
  @shirt_size = json_hash[:shirt_size]
  @email = json_hash[:email]
  @location = json_hash[:location]
  @avatar = json_hash[:avatar]
end

Instance Attribute Details

#avatarObject (readonly)

Returns the value of attribute avatar.



3
4
5
# File 'lib/papercall/models/presenter_profile.rb', line 3

def avatar
  @avatar
end

#bioObject (readonly)

Returns the value of attribute bio.



3
4
5
# File 'lib/papercall/models/presenter_profile.rb', line 3

def bio
  @bio
end

#companyObject (readonly)

Returns the value of attribute company.



3
4
5
# File 'lib/papercall/models/presenter_profile.rb', line 3

def company
  @company
end

#emailObject (readonly)

Returns the value of attribute email.



3
4
5
# File 'lib/papercall/models/presenter_profile.rb', line 3

def email
  @email
end

#locationObject (readonly)

Returns the value of attribute location.



3
4
5
# File 'lib/papercall/models/presenter_profile.rb', line 3

def location
  @location
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/papercall/models/presenter_profile.rb', line 3

def name
  @name
end

#shirt_sizeObject (readonly)

Returns the value of attribute shirt_size.



3
4
5
# File 'lib/papercall/models/presenter_profile.rb', line 3

def shirt_size
  @shirt_size
end

#twitterObject (readonly)

Returns the value of attribute twitter.



3
4
5
# File 'lib/papercall/models/presenter_profile.rb', line 3

def twitter
  @twitter
end

#urlObject (readonly)

Returns the value of attribute url.



3
4
5
# File 'lib/papercall/models/presenter_profile.rb', line 3

def url
  @url
end