Class: Stratify::GitHub::Activity

Inherits:
Activity
  • Object
show all
Extended by:
Translation
Defined in:
lib/stratify-github/activity.rb

Instance Method Summary collapse

Methods included from Translation

from_api_hash

Instance Method Details



24
25
26
# File 'lib/stratify-github/activity.rb', line 24

def permalink
  url
end

#to_htmlObject



35
36
37
# File 'lib/stratify-github/activity.rb', line 35

def to_html
  Stratify::GitHub::Presenter.new(self).to_html
end

#to_strObject

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