Class: Inttegro::Search::Result
- Inherits:
-
T::Struct
- Object
- T::Struct
- Inttegro::Search::Result
- Defined in:
- lib/inttegro/search/result.rb
Overview
Typed representation of the result 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
-
#amount ⇒ Inttegro::Money::Amount?
readonly
Value of the
amountfield in the Inttegro API payload. -
#customer_name ⇒ String?
readonly
Value of the
customer_namefield in the Inttegro API payload. -
#resource ⇒ Inttegro::Search::ResourceReference
readonly
Value of the
resourcefield in the Inttegro API payload. -
#status ⇒ String?
readonly
Value of the
statusfield in the Inttegro API payload. -
#summary ⇒ String?
readonly
Value of the
summaryfield in the Inttegro API payload. -
#title ⇒ String
readonly
Value of the
titlefield in the Inttegro API payload. -
#updated_at ⇒ Time
readonly
Value of the
updated_atfield in the Inttegro API payload. -
#url ⇒ String?
readonly
Value of the
urlfield in the Inttegro API payload.
Instance Attribute Details
#amount ⇒ Inttegro::Money::Amount? (readonly)
Value of the amount field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: amount.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/search/result.rb', line 67 class Result < T::Struct const :resource, Inttegro::Search::ResourceReference const :title, String const :summary, T.nilable(String), default: nil const :status, T.nilable(String), default: nil const :customer_name, T.nilable(String), default: nil const :amount, T.nilable(Inttegro::Money::Amount), default: nil const :url, T.nilable(String), default: nil const :updated_at, Time end |
#customer_name ⇒ String? (readonly)
Value of the customer_name field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: customer_name.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/search/result.rb', line 67 class Result < T::Struct const :resource, Inttegro::Search::ResourceReference const :title, String const :summary, T.nilable(String), default: nil const :status, T.nilable(String), default: nil const :customer_name, T.nilable(String), default: nil const :amount, T.nilable(Inttegro::Money::Amount), default: nil const :url, T.nilable(String), default: nil const :updated_at, Time end |
#resource ⇒ Inttegro::Search::ResourceReference (readonly)
Value of the resource field in the Inttegro API payload.
Required in the API payload. Wire name: resource.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/search/result.rb', line 67 class Result < T::Struct const :resource, Inttegro::Search::ResourceReference const :title, String const :summary, T.nilable(String), default: nil const :status, T.nilable(String), default: nil const :customer_name, T.nilable(String), default: nil const :amount, T.nilable(Inttegro::Money::Amount), default: nil const :url, T.nilable(String), default: nil const :updated_at, Time end |
#status ⇒ String? (readonly)
Value of the status field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: status.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/search/result.rb', line 67 class Result < T::Struct const :resource, Inttegro::Search::ResourceReference const :title, String const :summary, T.nilable(String), default: nil const :status, T.nilable(String), default: nil const :customer_name, T.nilable(String), default: nil const :amount, T.nilable(Inttegro::Money::Amount), default: nil const :url, T.nilable(String), default: nil const :updated_at, Time end |
#summary ⇒ String? (readonly)
Value of the summary field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: summary.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/search/result.rb', line 67 class Result < T::Struct const :resource, Inttegro::Search::ResourceReference const :title, String const :summary, T.nilable(String), default: nil const :status, T.nilable(String), default: nil const :customer_name, T.nilable(String), default: nil const :amount, T.nilable(Inttegro::Money::Amount), default: nil const :url, T.nilable(String), default: nil const :updated_at, Time end |
#title ⇒ String (readonly)
Value of the title field in the Inttegro API payload.
Required in the API payload. Wire name: title.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/search/result.rb', line 67 class Result < T::Struct const :resource, Inttegro::Search::ResourceReference const :title, String const :summary, T.nilable(String), default: nil const :status, T.nilable(String), default: nil const :customer_name, T.nilable(String), default: nil const :amount, T.nilable(Inttegro::Money::Amount), default: nil const :url, T.nilable(String), default: nil const :updated_at, Time end |
#updated_at ⇒ Time (readonly)
Value of the updated_at field in the Inttegro API payload.
Required in the API payload. Wire name: updated_at.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/search/result.rb', line 67 class Result < T::Struct const :resource, Inttegro::Search::ResourceReference const :title, String const :summary, T.nilable(String), default: nil const :status, T.nilable(String), default: nil const :customer_name, T.nilable(String), default: nil const :amount, T.nilable(Inttegro::Money::Amount), default: nil const :url, T.nilable(String), default: nil const :updated_at, Time end |
#url ⇒ String? (readonly)
Value of the url field in the Inttegro API payload.
Optional in the API payload; omitted values default to nil. Wire name: url.
67 68 69 70 71 72 73 74 75 76 |
# File 'lib/inttegro/search/result.rb', line 67 class Result < T::Struct const :resource, Inttegro::Search::ResourceReference const :title, String const :summary, T.nilable(String), default: nil const :status, T.nilable(String), default: nil const :customer_name, T.nilable(String), default: nil const :amount, T.nilable(Inttegro::Money::Amount), default: nil const :url, T.nilable(String), default: nil const :updated_at, Time end |