Class: AngelApiGem::Role
- Inherits:
-
Object
- Object
- AngelApiGem::Role
- Defined in:
- app/models/angel_api_gem/role.rb
Instance Attribute Summary collapse
-
#angel_url ⇒ Object
Returns the value of attribute angel_url.
-
#bio ⇒ Object
Returns the value of attribute bio.
-
#confirmed ⇒ Object
Returns the value of attribute confirmed.
-
#followers ⇒ Object
Returns the value of attribute followers.
-
#id ⇒ Object
Returns the value of attribute id.
-
#image_url ⇒ Object
Returns the value of attribute image_url.
-
#name ⇒ Object
Returns the value of attribute name.
-
#role ⇒ Object
Returns the value of attribute role.
-
#type ⇒ Object
Returns the value of attribute type.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(role) ⇒ Role
constructor
A new instance of Role.
Constructor Details
#initialize(role) ⇒ Role
Returns a new instance of Role.
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/models/angel_api_gem/role.rb', line 6 def initialize(role) @id = role["id"] @role = role["role"] @confirmed = role["confirmed"] @name = role["tagged"]["name"] @type = role["tagged"]["type"] @user_id = role["tagged"]["id"] @bio = role["tagged"]["bio"] @followers = role["tagged"]["follower_count"] @angel_url = role["tagged"]["angellist_url"] @image_url = role["tagged"]["image"] end |
Instance Attribute Details
#angel_url ⇒ Object
Returns the value of attribute angel_url.
4 5 6 |
# File 'app/models/angel_api_gem/role.rb', line 4 def angel_url @angel_url end |
#bio ⇒ Object
Returns the value of attribute bio.
4 5 6 |
# File 'app/models/angel_api_gem/role.rb', line 4 def bio @bio end |
#confirmed ⇒ Object
Returns the value of attribute confirmed.
4 5 6 |
# File 'app/models/angel_api_gem/role.rb', line 4 def confirmed @confirmed end |
#followers ⇒ Object
Returns the value of attribute followers.
4 5 6 |
# File 'app/models/angel_api_gem/role.rb', line 4 def followers @followers end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'app/models/angel_api_gem/role.rb', line 4 def id @id end |
#image_url ⇒ Object
Returns the value of attribute image_url.
4 5 6 |
# File 'app/models/angel_api_gem/role.rb', line 4 def image_url @image_url end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'app/models/angel_api_gem/role.rb', line 4 def name @name end |
#role ⇒ Object
Returns the value of attribute role.
4 5 6 |
# File 'app/models/angel_api_gem/role.rb', line 4 def role @role end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'app/models/angel_api_gem/role.rb', line 4 def type @type end |
#user_id ⇒ Object
Returns the value of attribute user_id.
4 5 6 |
# File 'app/models/angel_api_gem/role.rb', line 4 def user_id @user_id end |