Class: Adjutant::Parser
- Inherits:
-
Struct
- Object
- Struct
- Adjutant::Parser
- Defined in:
- lib/adjutant/parser.rb
Instance Attribute Summary collapse
-
#json ⇒ Object
Returns the value of attribute json.
Instance Method Summary collapse
Instance Attribute Details
#json ⇒ Object
Returns the value of attribute json
2 3 4 |
# File 'lib/adjutant/parser.rb', line 2 def json @json end |
Instance Method Details
#commiter_nickname ⇒ Object
12 13 14 |
# File 'lib/adjutant/parser.rb', line 12 def commiter_nickname @nickname ||= json['pusher']['name'] end |
#commits_sha ⇒ Object
8 9 10 |
# File 'lib/adjutant/parser.rb', line 8 def commits_sha @shas ||= json['commits'].collect { |commit| commit['id'] } end |
#repo_name ⇒ Object
3 4 5 6 |
# File 'lib/adjutant/parser.rb', line 3 def repo_name @name ||= "#{json['repository']['owner']['name']}/#{json['repository']['name']}" end |