Class: Fastly::Invoice
Overview
An invoice for a time period
Instance Attribute Summary collapse
-
#end_time ⇒ Object
Returns the value of attribute end_time.
-
#regions ⇒ Object
Returns the value of attribute regions.
-
#service_id ⇒ Object
Returns the value of attribute service_id.
-
#service_name ⇒ Object
Returns the value of attribute service_name.
-
#start_time ⇒ Object
Returns the value of attribute start_time.
-
#total ⇒ Object
Returns the value of attribute total.
Attributes inherited from Base
Instance Method Summary collapse
-
#end ⇒ Object
Get the end time of this invoice as a DateTime object in UTC.
-
#start ⇒ Object
Get the start time of this invoice as a DateTime object in UTC.
Methods inherited from Base
#as_hash, #initialize, path, #require_api_key!
Constructor Details
This class inherits a constructor from Fastly::Base
Instance Attribute Details
#end_time ⇒ Object
Returns the value of attribute end_time.
4 5 6 |
# File 'lib/fastly/invoice.rb', line 4 def end_time @end_time end |
#regions ⇒ Object
Returns the value of attribute regions.
4 5 6 |
# File 'lib/fastly/invoice.rb', line 4 def regions @regions end |
#service_id ⇒ Object
Returns the value of attribute service_id.
4 5 6 |
# File 'lib/fastly/invoice.rb', line 4 def service_id @service_id end |
#service_name ⇒ Object
Returns the value of attribute service_name.
4 5 6 |
# File 'lib/fastly/invoice.rb', line 4 def service_name @service_name end |
#start_time ⇒ Object
Returns the value of attribute start_time.
4 5 6 |
# File 'lib/fastly/invoice.rb', line 4 def start_time @start_time end |
#total ⇒ Object
Returns the value of attribute total.
4 5 6 |
# File 'lib/fastly/invoice.rb', line 4 def total @total end |
Instance Method Details
#end ⇒ Object
Get the end time of this invoice as a DateTime object in UTC
48 49 50 |
# File 'lib/fastly/invoice.rb', line 48 def end DateTime.parse(end_time).new_offset(0) end |
#start ⇒ Object
Get the start time of this invoice as a DateTime object in UTC
43 44 45 |
# File 'lib/fastly/invoice.rb', line 43 def start DateTime.parse(start_time).new_offset(0) end |