Class: PowerBI::Refresh

Inherits:
Object
  • Object
show all
Defined in:
lib/power-bi/refresh.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_timeObject (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_typeObject (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_idObject (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_jsonObject (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_timeObject (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

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/power-bi/refresh.rb', line 3

def status
  @status
end