Class: Crashlytics::Parser

Inherits:
Struct
  • Object
show all
Defined in:
lib/crashlytics/parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#htmlObject

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



5
6
7
# File 'lib/crashlytics/parser.rb', line 5

def html
  @html
end

Instance Method Details

#statisticsObject



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