Class: PowerBI::Refresh
- Inherits:
-
Object
- Object
- PowerBI::Refresh
- Defined in:
- lib/power-bi/refresh.rb
Instance Attribute Summary collapse
-
#end_time ⇒ Object
readonly
Returns the value of attribute end_time.
-
#refresh_type ⇒ Object
readonly
Returns the value of attribute refresh_type.
-
#request_id ⇒ Object
readonly
Returns the value of attribute request_id.
-
#service_exception_json ⇒ Object
readonly
Returns the value of attribute service_exception_json.
-
#start_time ⇒ Object
readonly
Returns the value of attribute start_time.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(tenant, data) ⇒ Refresh
constructor
A new instance of Refresh.
Constructor Details
#initialize(tenant, data) ⇒ Refresh
Returns a new instance of Refresh.
5 6 7 8 9 10 11 12 13 |
# File 'lib/power-bi/refresh.rb', line 5 def initialize(tenant, data) @id = data[:id] @refresh_type = data[:refreshType] @start_time = DateTime.iso8601(data[:startTime]) @end_time = DateTime.iso8601(data[:endTime]) if data[:endTime] @service_exception_json = data[:serviceExceptionJson] @status = data[:status] @request_id = data[:requestId] end |
Instance Attribute Details
#end_time ⇒ Object (readonly)
Returns the value of attribute end_time.
3 4 5 |
# File 'lib/power-bi/refresh.rb', line 3 def end_time @end_time end |
#refresh_type ⇒ Object (readonly)
Returns the value of attribute refresh_type.
3 4 5 |
# File 'lib/power-bi/refresh.rb', line 3 def refresh_type @refresh_type end |
#request_id ⇒ Object (readonly)
Returns the value of attribute request_id.
3 4 5 |
# File 'lib/power-bi/refresh.rb', line 3 def request_id @request_id end |
#service_exception_json ⇒ Object (readonly)
Returns the value of attribute service_exception_json.
3 4 5 |
# File 'lib/power-bi/refresh.rb', line 3 def service_exception_json @service_exception_json end |
#start_time ⇒ Object (readonly)
Returns the value of attribute start_time.
3 4 5 |
# File 'lib/power-bi/refresh.rb', line 3 def start_time @start_time end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
3 4 5 |
# File 'lib/power-bi/refresh.rb', line 3 def status @status end |