Class: Crashlytics::Parser
- Inherits:
-
Struct
- Object
- Struct
- Crashlytics::Parser
- Defined in:
- lib/crashlytics/parser.rb
Instance Attribute Summary collapse
-
#html ⇒ Object
Returns the value of attribute html.
Instance Method Summary collapse
Instance Attribute Details
#html ⇒ Object
Returns the value of attribute html
5 6 7 |
# File 'lib/crashlytics/parser.rb', line 5 def html @html end |
Instance Method Details
#statistics ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/crashlytics/parser.rb', line 6 def statistics { issues: doc.search('.summary-issues .value').text.to_i, crashes: doc.search('.crashes-events .value').text.to_i, users_affected: doc.search('.crashes-users-affected .value').text.to_i } end |