Class: UU::OS::QoS::AccessRoleGetQoS

Inherits:
REST::DTO
  • Object
show all
Defined in:
uu_os_framework-0.29.16/lib/uu/os/qos/access_role_get_qos.rb

Overview

DTO with a QoS attributes for access role. The values means a request limit in a particular period. Special values are 0 (no request is allowed) and -1 (unlimited).

Instance Attribute Summary (collapse)

Method Summary

Methods inherited from REST::DTO

#initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from UU::OS::REST::DTO

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class UU::OS::REST::DTO

Instance Attribute Details

- (Numeric) day_rate

Day rate. Maximal number of requests per day.

Parameters:

  • (Numeric)

Returns:

  • (Numeric)


31
32
33
# File 'uu_os_framework-0.29.16/lib/uu/os/qos/access_role_get_qos.rb', line 31

def day_rate
  @day_rate
end

- (Numeric) hour_rate

Hour rate. Maximal number of requests per hour.

Parameters:

  • (Numeric)

Returns:

  • (Numeric)


37
38
39
# File 'uu_os_framework-0.29.16/lib/uu/os/qos/access_role_get_qos.rb', line 37

def hour_rate
  @hour_rate
end

- (Numeric) minute_rate

Minute rate. Maximal number of requests per minute.

Parameters:

  • (Numeric)

Returns:

  • (Numeric)


43
44
45
# File 'uu_os_framework-0.29.16/lib/uu/os/qos/access_role_get_qos.rb', line 43

def minute_rate
  @minute_rate
end

- (Numeric) month_rate

Month rate. Maximal number of requests per month.

Parameters:

  • (Numeric)

Returns:

  • (Numeric)


19
20
21
# File 'uu_os_framework-0.29.16/lib/uu/os/qos/access_role_get_qos.rb', line 19

def month_rate
  @month_rate
end

- (Numeric) week_rate

Week rate. Maximal number of requests per week.

Parameters:

  • (Numeric)

Returns:

  • (Numeric)


25
26
27
# File 'uu_os_framework-0.29.16/lib/uu/os/qos/access_role_get_qos.rb', line 25

def week_rate
  @week_rate
end

- (Numeric) year_rate

Year rate. Maximal number of requests per year.

Parameters:

  • (Numeric)

Returns:

  • (Numeric)


13
14
15
# File 'uu_os_framework-0.29.16/lib/uu/os/qos/access_role_get_qos.rb', line 13

def year_rate
  @year_rate
end