Class: Pupil::Entities
- Inherits:
-
Object
- Object
- Pupil::Entities
- Defined in:
- lib/pupil/schemes.rb
Instance Attribute Summary (collapse)
-
- (Object) hashtags
readonly
Returns the value of attribute hashtags.
-
- (Object) urls
readonly
Returns the value of attribute urls.
-
- (Object) user_mentions
readonly
Returns the value of attribute user_mentions.
Instance Method Summary (collapse)
-
- (Entities) initialize(element)
constructor
A new instance of Entities.
Constructor Details
- (Entities) initialize(element)
A new instance of Entities
178 179 180 181 182 |
# File 'lib/pupil/schemes.rb', line 178 def initialize(element) @user_mentions = UserMention.new(element.elements['user_mention']) @urls = URL.new(element.elements['urls']) @hashtags = Hashtag.new(element.elements['hashtags']) end |
Instance Attribute Details
- (Object) hashtags (readonly)
Returns the value of attribute hashtags
176 177 178 |
# File 'lib/pupil/schemes.rb', line 176 def @hashtags end |
- (Object) urls (readonly)
Returns the value of attribute urls
175 176 177 |
# File 'lib/pupil/schemes.rb', line 175 def urls @urls end |
- (Object) user_mentions (readonly)
Returns the value of attribute user_mentions
174 175 176 |
# File 'lib/pupil/schemes.rb', line 174 def user_mentions @user_mentions end |