Class: Report::CallStatistics::Query::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/report/call_statistics/query.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(success: nil, individuals: [], summary: nil, message: nil, date_start: nil, date_end: nil) ⇒ Result

Returns a new instance of Result.



5
# File 'app/services/report/call_statistics/query.rb', line 5

def initialize(success: nil, individuals: [], summary: nil, message: nil, date_start: nil, date_end: nil) = super

Instance Attribute Details

#date_endObject (readonly)

Returns the value of attribute date_end

Returns:

  • (Object)

    the current value of date_end



4
5
6
# File 'app/services/report/call_statistics/query.rb', line 4

def date_end
  @date_end
end

#date_startObject (readonly)

Returns the value of attribute date_start

Returns:

  • (Object)

    the current value of date_start



4
5
6
# File 'app/services/report/call_statistics/query.rb', line 4

def date_start
  @date_start
end

#individualsObject (readonly)

Returns the value of attribute individuals

Returns:

  • (Object)

    the current value of individuals



4
5
6
# File 'app/services/report/call_statistics/query.rb', line 4

def individuals
  @individuals
end

#messageObject (readonly)

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



4
5
6
# File 'app/services/report/call_statistics/query.rb', line 4

def message
  @message
end

#successObject (readonly)

Returns the value of attribute success

Returns:

  • (Object)

    the current value of success



4
5
6
# File 'app/services/report/call_statistics/query.rb', line 4

def success
  @success
end

#summaryObject (readonly)

Returns the value of attribute summary

Returns:

  • (Object)

    the current value of summary



4
5
6
# File 'app/services/report/call_statistics/query.rb', line 4

def summary
  @summary
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


6
# File 'app/services/report/call_statistics/query.rb', line 6

def success? = success