Class: AngelApiGem::Role

Inherits:
Object
  • Object
show all
Defined in:
app/models/angel_api_gem/role.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject

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

#bioObject

Returns the value of attribute bio.



4
5
6
# File 'app/models/angel_api_gem/role.rb', line 4

def bio
  @bio
end

#confirmedObject

Returns the value of attribute confirmed.



4
5
6
# File 'app/models/angel_api_gem/role.rb', line 4

def confirmed
  @confirmed
end

#followersObject

Returns the value of attribute followers.



4
5
6
# File 'app/models/angel_api_gem/role.rb', line 4

def followers
  @followers
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'app/models/angel_api_gem/role.rb', line 4

def id
  @id
end

#image_urlObject

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'app/models/angel_api_gem/role.rb', line 4

def name
  @name
end

#roleObject

Returns the value of attribute role.



4
5
6
# File 'app/models/angel_api_gem/role.rb', line 4

def role
  @role
end

#typeObject

Returns the value of attribute type.



4
5
6
# File 'app/models/angel_api_gem/role.rb', line 4

def type
  @type
end

#user_idObject

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