Class: PresenterProfile
- Inherits:
-
Object
- Object
- PresenterProfile
- Defined in:
- lib/papercall/models/presenter_profile.rb
Instance Attribute Summary collapse
-
#avatar ⇒ Object
readonly
Returns the value of attribute avatar.
-
#bio ⇒ Object
readonly
Returns the value of attribute bio.
-
#company ⇒ Object
readonly
Returns the value of attribute company.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#shirt_size ⇒ Object
readonly
Returns the value of attribute shirt_size.
-
#twitter ⇒ Object
readonly
Returns the value of attribute twitter.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json_hash = {}) ⇒ PresenterProfile
constructor
A new instance of PresenterProfile.
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
#avatar ⇒ Object (readonly)
Returns the value of attribute avatar.
3 4 5 |
# File 'lib/papercall/models/presenter_profile.rb', line 3 def avatar @avatar end |
#bio ⇒ Object (readonly)
Returns the value of attribute bio.
3 4 5 |
# File 'lib/papercall/models/presenter_profile.rb', line 3 def bio @bio end |
#company ⇒ Object (readonly)
Returns the value of attribute company.
3 4 5 |
# File 'lib/papercall/models/presenter_profile.rb', line 3 def company @company end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/papercall/models/presenter_profile.rb', line 3 def email @email end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
3 4 5 |
# File 'lib/papercall/models/presenter_profile.rb', line 3 def location @location end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/papercall/models/presenter_profile.rb', line 3 def name @name end |
#shirt_size ⇒ Object (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 |
#twitter ⇒ Object (readonly)
Returns the value of attribute twitter.
3 4 5 |
# File 'lib/papercall/models/presenter_profile.rb', line 3 def twitter @twitter end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/papercall/models/presenter_profile.rb', line 3 def url @url end |