Class: Pupil::Entities

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

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
  @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