Class: Inttegro::File::Resource
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::File::Resource
- Defined in:
- lib/inttegro/file/resource.rb
Overview
Typed representation of the resource 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
-
#id ⇒ String?
readonly
Value of the
idfield in the Inttegro API payload. -
#name ⇒ String?
readonly
Value of the
namefield in the Inttegro API payload. -
#type ⇒ String?
readonly
Value of the
typefield in the Inttegro API payload.
Instance Attribute Details
#id ⇒ String? (readonly)
Value of the id field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: id.
35 36 37 38 39 |
# File 'lib/inttegro/file/resource.rb', line 35 class Resource < T::Struct const :type, T.nilable(String), default: nil const :id, T.nilable(String), default: nil const :name, T.nilable(String), default: nil end |
#name ⇒ String? (readonly)
Value of the name field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: name.
35 36 37 38 39 |
# File 'lib/inttegro/file/resource.rb', line 35 class Resource < T::Struct const :type, T.nilable(String), default: nil const :id, T.nilable(String), default: nil const :name, T.nilable(String), default: nil end |
#type ⇒ String? (readonly)
Value of the type field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: type.
35 36 37 38 39 |
# File 'lib/inttegro/file/resource.rb', line 35 class Resource < T::Struct const :type, T.nilable(String), default: nil const :id, T.nilable(String), default: nil const :name, T.nilable(String), default: nil end |