Class: Inttegro::Shared::ResourceSupply
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Shared::ResourceSupply
- Defined in:
- lib/inttegro/shared/resource_supply.rb
Overview
Typed representation of the resource supply object in the Inttegro API.
This generated model is immutable. Construct it with .new, or decode a string-keyed API
payload with .from_hash. #serialize produces a string-keyed hash using the original wire
field names and serialized enum values.
Instance Attribute Summary collapse
-
#attempt_id ⇒ String?
readonly
Value of the
attempt_idfield in the Inttegro API payload. -
#by ⇒ String
readonly
Value of the
byfield in the Inttegro API payload. -
#channel ⇒ String?
readonly
Value of the
channelfield in the Inttegro API payload. -
#resource_id ⇒ String?
readonly
Value of the
resource_idfield in the Inttegro API payload. -
#resource_type ⇒ String?
readonly
Value of the
resource_typefield in the Inttegro API payload. -
#supplied_at ⇒ Time
readonly
Value of the
supplied_atfield in the Inttegro API payload.
Instance Attribute Details
#attempt_id ⇒ String? (readonly)
Value of the attempt_id field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: attempt_id.
53 54 55 56 57 58 59 60 |
# File 'lib/inttegro/shared/resource_supply.rb', line 53 class ResourceSupply < T::Struct const :attempt_id, T.nilable(String), default: nil const :by, String const :channel, T.nilable(String), default: nil const :resource_id, T.nilable(String), default: nil const :resource_type, T.nilable(String), default: nil const :supplied_at, Time end |
#by ⇒ String (readonly)
Value of the by field in the Inttegro API payload.
Required in the API payload. Wire name: by.
53 54 55 56 57 58 59 60 |
# File 'lib/inttegro/shared/resource_supply.rb', line 53 class ResourceSupply < T::Struct const :attempt_id, T.nilable(String), default: nil const :by, String const :channel, T.nilable(String), default: nil const :resource_id, T.nilable(String), default: nil const :resource_type, T.nilable(String), default: nil const :supplied_at, Time end |
#channel ⇒ String? (readonly)
Value of the channel field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: channel.
53 54 55 56 57 58 59 60 |
# File 'lib/inttegro/shared/resource_supply.rb', line 53 class ResourceSupply < T::Struct const :attempt_id, T.nilable(String), default: nil const :by, String const :channel, T.nilable(String), default: nil const :resource_id, T.nilable(String), default: nil const :resource_type, T.nilable(String), default: nil const :supplied_at, Time end |
#resource_id ⇒ String? (readonly)
Value of the resource_id field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: resource_id.
53 54 55 56 57 58 59 60 |
# File 'lib/inttegro/shared/resource_supply.rb', line 53 class ResourceSupply < T::Struct const :attempt_id, T.nilable(String), default: nil const :by, String const :channel, T.nilable(String), default: nil const :resource_id, T.nilable(String), default: nil const :resource_type, T.nilable(String), default: nil const :supplied_at, Time end |
#resource_type ⇒ String? (readonly)
Value of the resource_type field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: resource_type.
53 54 55 56 57 58 59 60 |
# File 'lib/inttegro/shared/resource_supply.rb', line 53 class ResourceSupply < T::Struct const :attempt_id, T.nilable(String), default: nil const :by, String const :channel, T.nilable(String), default: nil const :resource_id, T.nilable(String), default: nil const :resource_type, T.nilable(String), default: nil const :supplied_at, Time end |
#supplied_at ⇒ Time (readonly)
Value of the supplied_at field in the Inttegro API payload.
Required in the API payload. Wire name: supplied_at.
53 54 55 56 57 58 59 60 |
# File 'lib/inttegro/shared/resource_supply.rb', line 53 class ResourceSupply < T::Struct const :attempt_id, T.nilable(String), default: nil const :by, String const :channel, T.nilable(String), default: nil const :resource_id, T.nilable(String), default: nil const :resource_type, T.nilable(String), default: nil const :supplied_at, Time end |