Class: Pupil::User

Inherits:
Object
  • Object
show all
Defined in:
lib/pupil/schemes.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (User) initialize(j)

A new instance of User



43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/pupil/schemes.rb', line 43

def initialize j
  @contributors_enabled = j["contributors_enabled"] rescue nil
  @created_at = j["created_at"]
  @default_profile = j["default_profile"]
  @default_profile_image = j["default_profile_image"]
  @description = j["description"]
  @favourites_count = j["favourites_count"]
  @follow_request_sent = j["follow_request_sent"]
  @followers_count = j["followers_count"]
  @following = j["following"]
  @friends_count = j["friends_count"]
  @geo_enabled = j["geo_enabled"]
  @id = j["id"]
  @id_str = j["id_str"]
  @is_translator = j["is_translator"]
  @lang = j["lang"]
  @listed_count = j["listed_count"]
  @location = j["location"]
  @name = j["name"]
  @notifications = j["notifications"]
  @profile_background_color = j["profile_background_color"]
  @profile_background_image_url = j["profile_background_image_url"]
  @profile_background_image_url_https = j["profile_background_image_url_https"]
  @profile_background_tile = j["profile_background_tile"]
  @profile_image_url = j["profile_image_url"]
  @profile_image_url_https = j["profile_image_url_https"]
  @profile_link_color = j["profile_link_color"]
  @profile_sidebar_border_color = j["profile_sidebar_border_color"]
  @profile_sidebar_fill_color = j["profile_sidebar_fill_color"]
  @profile_text_color = j["profile_text_color"]
  @profile_use_background_image = j["profile_use_background_image"]
  @protected = j["protected"]
  @screen_name = j["screen_name"]
  @show_all_inline_media = j["show_all_inline_media"]
  @status = Status.new j["status"]
  @statuses_count = j["statuses_count"]
  @time_zone = j["time_zone"]
  @url = j["url"]
  @utc_offset = j["utc_offset"]
  @verified = j["verified"]
end

Instance Attribute Details

- (Object) contributors_enabled (readonly)

Returns the value of attribute contributors_enabled



3
4
5
# File 'lib/pupil/schemes.rb', line 3

def contributors_enabled
  @contributors_enabled
end

- (Object) created_at (readonly)

Returns the value of attribute created_at



4
5
6
# File 'lib/pupil/schemes.rb', line 4

def created_at
  @created_at
end

- (Object) default_profile (readonly)

Returns the value of attribute default_profile



5
6
7
# File 'lib/pupil/schemes.rb', line 5

def default_profile
  @default_profile
end

- (Object) default_profile_image (readonly)

Returns the value of attribute default_profile_image



6
7
8
# File 'lib/pupil/schemes.rb', line 6

def default_profile_image
  @default_profile_image
end

- (Object) description (readonly)

Returns the value of attribute description



7
8
9
# File 'lib/pupil/schemes.rb', line 7

def description
  @description
end

- (Object) favourites_count (readonly)

Returns the value of attribute favourites_count



8
9
10
# File 'lib/pupil/schemes.rb', line 8

def favourites_count
  @favourites_count
end

- (Object) follow_request_sent (readonly)

Returns the value of attribute follow_request_sent



9
10
11
# File 'lib/pupil/schemes.rb', line 9

def 
  @follow_request_sent
end

- (Object) followers_count (readonly)

Returns the value of attribute followers_count



10
11
12
# File 'lib/pupil/schemes.rb', line 10

def followers_count
  @followers_count
end

- (Object) following (readonly)

Returns the value of attribute following



11
12
13
# File 'lib/pupil/schemes.rb', line 11

def following
  @following
end

- (Object) friends_count (readonly)

Returns the value of attribute friends_count



12
13
14
# File 'lib/pupil/schemes.rb', line 12

def friends_count
  @friends_count
end

- (Object) geo_enabled (readonly)

Returns the value of attribute geo_enabled



13
14
15
# File 'lib/pupil/schemes.rb', line 13

def geo_enabled
  @geo_enabled
end

- (Object) id (readonly)

Returns the value of attribute id



14
15
16
# File 'lib/pupil/schemes.rb', line 14

def id
  @id
end

- (Object) id_str (readonly)

Returns the value of attribute id_str



15
16
17
# File 'lib/pupil/schemes.rb', line 15

def id_str
  @id_str
end

- (Object) is_translator (readonly)

Returns the value of attribute is_translator



16
17
18
# File 'lib/pupil/schemes.rb', line 16

def is_translator
  @is_translator
end

- (Object) lang (readonly)

Returns the value of attribute lang



17
18
19
# File 'lib/pupil/schemes.rb', line 17

def lang
  @lang
end

- (Object) listed_count (readonly)

Returns the value of attribute listed_count



18
19
20
# File 'lib/pupil/schemes.rb', line 18

def listed_count
  @listed_count
end

- (Object) location (readonly)

Returns the value of attribute location



19
20
21
# File 'lib/pupil/schemes.rb', line 19

def location
  @location
end

- (Object) name (readonly)

Returns the value of attribute name



20
21
22
# File 'lib/pupil/schemes.rb', line 20

def name
  @name
end

- (Object) notifications (readonly)

Returns the value of attribute notifications



21
22
23
# File 'lib/pupil/schemes.rb', line 21

def notifications
  @notifications
end

- (Object) profile_background_color (readonly)

Returns the value of attribute profile_background_color



22
23
24
# File 'lib/pupil/schemes.rb', line 22

def profile_background_color
  @profile_background_color
end

- (Object) profile_background_image_url (readonly)

Returns the value of attribute profile_background_image_url



23
24
25
# File 'lib/pupil/schemes.rb', line 23

def profile_background_image_url
  @profile_background_image_url
end

- (Object) profile_background_image_url_https (readonly)

Returns the value of attribute profile_background_image_url_https



24
25
26
# File 'lib/pupil/schemes.rb', line 24

def profile_background_image_url_https
  @profile_background_image_url_https
end

- (Object) profile_background_tile (readonly)

Returns the value of attribute profile_background_tile



25
26
27
# File 'lib/pupil/schemes.rb', line 25

def profile_background_tile
  @profile_background_tile
end

- (Object) profile_image_url (readonly)

Returns the value of attribute profile_image_url



26
27
28
# File 'lib/pupil/schemes.rb', line 26

def profile_image_url
  @profile_image_url
end

- (Object) profile_image_url_https (readonly)

Returns the value of attribute profile_image_url_https



27
28
29
# File 'lib/pupil/schemes.rb', line 27

def profile_image_url_https
  @profile_image_url_https
end

Returns the value of attribute profile_link_color



28
29
30
# File 'lib/pupil/schemes.rb', line 28

def profile_link_color
  @profile_link_color
end

- (Object) profile_sidebar_border_color (readonly)

Returns the value of attribute profile_sidebar_border_color



29
30
31
# File 'lib/pupil/schemes.rb', line 29

def profile_sidebar_border_color
  @profile_sidebar_border_color
end

- (Object) profile_sidebar_fill_color (readonly)

Returns the value of attribute profile_sidebar_fill_color



30
31
32
# File 'lib/pupil/schemes.rb', line 30

def profile_sidebar_fill_color
  @profile_sidebar_fill_color
end

- (Object) profile_text_color (readonly)

Returns the value of attribute profile_text_color



31
32
33
# File 'lib/pupil/schemes.rb', line 31

def profile_text_color
  @profile_text_color
end

- (Object) profile_use_background_image (readonly)

Returns the value of attribute profile_use_background_image



32
33
34
# File 'lib/pupil/schemes.rb', line 32

def profile_use_background_image
  @profile_use_background_image
end

- (Object) protected (readonly)

Returns the value of attribute protected



33
34
35
# File 'lib/pupil/schemes.rb', line 33

def protected
  @protected
end

- (Object) screen_name (readonly)

Returns the value of attribute screen_name



34
35
36
# File 'lib/pupil/schemes.rb', line 34

def screen_name
  @screen_name
end

- (Object) show_all_inline_media (readonly)

Returns the value of attribute show_all_inline_media



35
36
37
# File 'lib/pupil/schemes.rb', line 35

def show_all_inline_media
  @show_all_inline_media
end

- (Object) status (readonly)

Returns the value of attribute status



36
37
38
# File 'lib/pupil/schemes.rb', line 36

def status
  @status
end

- (Object) statuses_count (readonly)

Returns the value of attribute statuses_count



37
38
39
# File 'lib/pupil/schemes.rb', line 37

def statuses_count
  @statuses_count
end

- (Object) time_zone (readonly)

Returns the value of attribute time_zone



38
39
40
# File 'lib/pupil/schemes.rb', line 38

def time_zone
  @time_zone
end

- (Object) url (readonly)

Returns the value of attribute url



39
40
41
# File 'lib/pupil/schemes.rb', line 39

def url
  @url
end

- (Object) utc_offset (readonly)

Returns the value of attribute utc_offset



40
41
42
# File 'lib/pupil/schemes.rb', line 40

def utc_offset
  @utc_offset
end

- (Object) verified (readonly)

Returns the value of attribute verified



41
42
43
# File 'lib/pupil/schemes.rb', line 41

def verified
  @verified
end