Class: Stratify::GitHub::Activity
- Inherits:
-
Activity
- Object
- Activity
- Stratify::GitHub::Activity
- Extended by:
- Translation
- Defined in:
- lib/stratify-github/activity.rb
Instance Method Summary collapse
- #permalink ⇒ Object
- #to_html ⇒ Object
-
#to_str ⇒ Object
Let the values of this object’s fields inform its checksum.
Methods included from Translation
Instance Method Details
#permalink ⇒ Object
24 25 26 |
# File 'lib/stratify-github/activity.rb', line 24 def permalink url end |
#to_html ⇒ Object
35 36 37 |
# File 'lib/stratify-github/activity.rb', line 35 def to_html Stratify::GitHub::Presenter.new(self).to_html end |
#to_str ⇒ Object
Let the values of this object’s fields inform its checksum.
29 30 31 32 33 |
# File 'lib/stratify-github/activity.rb', line 29 def to_str fields.collect do |field, body| send(field) if body.type == Object end.compact.sort.join(' ') end |