Class: EdoolsSdk::Invitation
- Inherits:
-
EdoolsBase
- Object
- EdoolsBase
- EdoolsSdk::Invitation
- Defined in:
- lib/edools_sdk/invitation.rb
Overview
Invitation class
Instance Attribute Summary collapse
-
#biography ⇒ Object
Returns the value of attribute biography.
-
#born_at ⇒ Object
Returns the value of attribute born_at.
-
#company_name ⇒ Object
Returns the value of attribute company_name.
-
#company_position ⇒ Object
Returns the value of attribute company_position.
-
#cover_image_url ⇒ Object
Returns the value of attribute cover_image_url.
-
#cpf ⇒ Object
Returns the value of attribute cpf.
-
#email ⇒ Object
Returns the value of attribute email.
-
#facebook ⇒ Object
Returns the value of attribute facebook.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#id ⇒ Object
Returns the value of attribute id.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#skype ⇒ Object
Returns the value of attribute skype.
-
#twitter ⇒ Object
Returns the value of attribute twitter.
Class Method Summary collapse
-
.parse_json(props) ⇒ Object
Parse json to Invitation object.
Methods inherited from EdoolsBase
Instance Attribute Details
#biography ⇒ Object
Returns the value of attribute biography.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def biography @biography end |
#born_at ⇒ Object
Returns the value of attribute born_at.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def born_at @born_at end |
#company_name ⇒ Object
Returns the value of attribute company_name.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def company_name @company_name end |
#company_position ⇒ Object
Returns the value of attribute company_position.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def company_position @company_position end |
#cover_image_url ⇒ Object
Returns the value of attribute cover_image_url.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def cover_image_url @cover_image_url end |
#cpf ⇒ Object
Returns the value of attribute cpf.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def cpf @cpf end |
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def email @email end |
#facebook ⇒ Object
Returns the value of attribute facebook.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def facebook @facebook end |
#first_name ⇒ Object
Returns the value of attribute first_name.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def first_name @first_name end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def id @id end |
#last_name ⇒ Object
Returns the value of attribute last_name.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def last_name @last_name end |
#phone ⇒ Object
Returns the value of attribute phone.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def phone @phone end |
#skype ⇒ Object
Returns the value of attribute skype.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def skype @skype end |
#twitter ⇒ Object
Returns the value of attribute twitter.
4 5 6 |
# File 'lib/edools_sdk/invitation.rb', line 4 def twitter @twitter end |
Class Method Details
.parse_json(props) ⇒ Object
Parse json to Invitation object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/edools_sdk/invitation.rb', line 22 def self.parse_json(props) invitation = Invitation.new invitation.id = props['id'] invitation.first_name = props['first_name'] invitation.last_name = props['last_name'] invitation.email = props['email'] invitation.cpf = props['cpf'] invitation.phone = props['phone'] invitation.skype = props['skype'] invitation.twitter = props['twitter'] invitation.facebook = props['facebook'] invitation.company_name = props['company_name'] invitation.company_position = props['company_position'] invitation.born_at = props['born_at'] invitation.biography = props['biography'] invitation.cover_image_url = props['cover_image_url'] invitation end |