Class: Pupil::List
- Inherits:
-
Object
- Object
- Pupil::List
- Defined in:
- lib/pupil/schemes.rb
Instance Attribute Summary (collapse)
-
- (Object) description
readonly
Returns the value of attribute description.
-
- (Object) following
readonly
Returns the value of attribute following.
-
- (Object) full_name
readonly
Returns the value of attribute full_name.
-
- (Object) id
readonly
Returns the value of attribute id.
-
- (Object) member_count
readonly
Returns the value of attribute member_count.
-
- (Object) mode
readonly
Returns the value of attribute mode.
-
- (Object) name
readonly
Returns the value of attribute name.
-
- (Object) slug
readonly
Returns the value of attribute slug.
-
- (Object) subscriber_count
readonly
Returns the value of attribute subscriber_count.
-
- (Object) uri
readonly
Returns the value of attribute uri.
-
- (Object) user
readonly
Returns the value of attribute user.
Instance Method Summary (collapse)
-
- (List) initialize(element)
constructor
A new instance of List.
Constructor Details
- (List) initialize(element)
A new instance of List
158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/pupil/schemes.rb', line 158 def initialize(element) @id = element.elements['id'].text() @name = element.elements['name'].text() @full_name = element.elements['full_name'].text() @slug = element.elements['slug'].text() @description = element.elements['description'].text() @subscriber_count = element.elements['subscriber_count'].text() @member_count = element.elements['member_count'].text() @uri = element.elements['uri'].text() @following = element.elements['following'].text() @mode = element.elements['mode'].text() @user = User.new(element.elements['user']) end |
Instance Attribute Details
- (Object) description (readonly)
Returns the value of attribute description
150 151 152 |
# File 'lib/pupil/schemes.rb', line 150 def description @description end |
- (Object) following (readonly)
Returns the value of attribute following
154 155 156 |
# File 'lib/pupil/schemes.rb', line 154 def following @following end |
- (Object) full_name (readonly)
Returns the value of attribute full_name
148 149 150 |
# File 'lib/pupil/schemes.rb', line 148 def full_name @full_name end |
- (Object) id (readonly)
Returns the value of attribute id
146 147 148 |
# File 'lib/pupil/schemes.rb', line 146 def id @id end |
- (Object) member_count (readonly)
Returns the value of attribute member_count
152 153 154 |
# File 'lib/pupil/schemes.rb', line 152 def member_count @member_count end |
- (Object) mode (readonly)
Returns the value of attribute mode
155 156 157 |
# File 'lib/pupil/schemes.rb', line 155 def mode @mode end |
- (Object) name (readonly)
Returns the value of attribute name
147 148 149 |
# File 'lib/pupil/schemes.rb', line 147 def name @name end |
- (Object) slug (readonly)
Returns the value of attribute slug
149 150 151 |
# File 'lib/pupil/schemes.rb', line 149 def slug @slug end |
- (Object) subscriber_count (readonly)
Returns the value of attribute subscriber_count
151 152 153 |
# File 'lib/pupil/schemes.rb', line 151 def subscriber_count @subscriber_count end |
- (Object) uri (readonly)
Returns the value of attribute uri
153 154 155 |
# File 'lib/pupil/schemes.rb', line 153 def uri @uri end |
- (Object) user (readonly)
Returns the value of attribute user
156 157 158 |
# File 'lib/pupil/schemes.rb', line 156 def user @user end |