Class: Azure::ServiceFabric::V6_3_0_9::Models::TimeOfDay

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/time_of_day.rb

Overview

Defines an hour and minute of the day specified in 24 hour time.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#hourInteger

0 and 23 inclusive.

Returns:

  • (Integer)

    Represents the hour of the day. Value must be between



17
18
19
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/time_of_day.rb', line 17

def hour
  @hour
end

#minuteInteger

between 0 to 59 inclusive.

Returns:

  • (Integer)

    Represents the minute of the hour. Value must be



21
22
23
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/time_of_day.rb', line 21

def minute
  @minute
end

Class Method Details

.mapperObject

Mapper for TimeOfDay class as Ruby Hash. This will be used for serialization/deserialization.



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/time_of_day.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'TimeOfDay',
    type: {
      name: 'Composite',
      class_name: 'TimeOfDay',
      model_properties: {
        hour: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Hour',
          constraints: {
            InclusiveMaximum: 23,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        minute: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Minute',
          constraints: {
            InclusiveMaximum: 59,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end