Class: EdoolsSdk::Invitation

Inherits:
EdoolsBase show all
Defined in:
lib/edools_sdk/invitation.rb

Overview

Invitation class

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from EdoolsBase

#to_h

Instance Attribute Details

#biographyObject

Returns the value of attribute biography.



4
5
6
# File 'lib/edools_sdk/invitation.rb', line 4

def biography
  @biography
end

#born_atObject

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_nameObject

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_positionObject

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_urlObject

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

#cpfObject

Returns the value of attribute cpf.



4
5
6
# File 'lib/edools_sdk/invitation.rb', line 4

def cpf
  @cpf
end

#emailObject

Returns the value of attribute email.



4
5
6
# File 'lib/edools_sdk/invitation.rb', line 4

def email
  @email
end

#facebookObject

Returns the value of attribute facebook.



4
5
6
# File 'lib/edools_sdk/invitation.rb', line 4

def facebook
  @facebook
end

#first_nameObject

Returns the value of attribute first_name.



4
5
6
# File 'lib/edools_sdk/invitation.rb', line 4

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/edools_sdk/invitation.rb', line 4

def id
  @id
end

#last_nameObject

Returns the value of attribute last_name.



4
5
6
# File 'lib/edools_sdk/invitation.rb', line 4

def last_name
  @last_name
end

#phoneObject

Returns the value of attribute phone.



4
5
6
# File 'lib/edools_sdk/invitation.rb', line 4

def phone
  @phone
end

#skypeObject

Returns the value of attribute skype.



4
5
6
# File 'lib/edools_sdk/invitation.rb', line 4

def skype
  @skype
end

#twitterObject

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