-
-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathearnings.rb
More file actions
17 lines (17 loc) · 760 Bytes
/
earnings.rb
File metadata and controls
17 lines (17 loc) · 760 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
module IEX
module Resources
class Earnings < Resource
property 'actual_eps', from: 'actualEPS'
property 'consensus_eps', from: 'consensusEPS'
property 'announce_time', from: 'announceTime'
property 'number_of_estimates', from: 'numberOfEstimates'
property 'eps_surprise_dollar', from: 'EPSSurpriseDollar'
property 'eps_report_date', from: 'EPSReportDate'
property 'fiscal_period', from: 'fiscalPeriod'
property 'fiscal_end_date', from: 'fiscalEndDate'
property 'year_ago', from: 'yearAgo'
property 'year_ago_change_percent', from: 'yearAgoChangePercent'
property 'year_ago_change_percent_s', from: 'yearAgoChangePercent', with: ->(v) { Resource.float_to_percentage(v) }
end
end
end