Class: ReactorSDK::Resources::ComprehensiveUpstreamChainEntry
- Inherits:
-
Object
- Object
- ReactorSDK::Resources::ComprehensiveUpstreamChainEntry
- Defined in:
- lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb
Instance Attribute Summary collapse
-
#comprehensive_resource ⇒ Object
readonly
Returns the value of attribute comprehensive_resource.
-
#library ⇒ Object
readonly
Returns the value of attribute library.
-
#resource ⇒ Object
readonly
Returns the value of attribute resource.
-
#revision ⇒ Object
readonly
Returns the value of attribute revision.
-
#revision_id ⇒ Object
readonly
Returns the value of attribute revision_id.
-
#stage ⇒ Object
readonly
Returns the value of attribute stage.
Instance Method Summary collapse
- #entity_snapshot ⇒ Object
-
#initialize(library:, stage:, resource:, revision_id:, revision:, comprehensive_resource:) ⇒ ComprehensiveUpstreamChainEntry
constructor
A new instance of ComprehensiveUpstreamChainEntry.
- #normalized_json ⇒ Object
- #normalized_payload ⇒ Object
- #present? ⇒ Boolean
Constructor Details
#initialize(library:, stage:, resource:, revision_id:, revision:, comprehensive_resource:) ⇒ ComprehensiveUpstreamChainEntry
Returns a new instance of ComprehensiveUpstreamChainEntry.
8 9 10 11 12 13 14 15 |
# File 'lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb', line 8 def initialize(library:, stage:, resource:, revision_id:, revision:, comprehensive_resource:) @library = library @stage = stage @resource = resource @revision_id = revision_id @revision = revision @comprehensive_resource = comprehensive_resource end |
Instance Attribute Details
#comprehensive_resource ⇒ Object (readonly)
Returns the value of attribute comprehensive_resource.
6 7 8 |
# File 'lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb', line 6 def comprehensive_resource @comprehensive_resource end |
#library ⇒ Object (readonly)
Returns the value of attribute library.
6 7 8 |
# File 'lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb', line 6 def library @library end |
#resource ⇒ Object (readonly)
Returns the value of attribute resource.
6 7 8 |
# File 'lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb', line 6 def resource @resource end |
#revision ⇒ Object (readonly)
Returns the value of attribute revision.
6 7 8 |
# File 'lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb', line 6 def revision @revision end |
#revision_id ⇒ Object (readonly)
Returns the value of attribute revision_id.
6 7 8 |
# File 'lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb', line 6 def revision_id @revision_id end |
#stage ⇒ Object (readonly)
Returns the value of attribute stage.
6 7 8 |
# File 'lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb', line 6 def stage @stage end |
Instance Method Details
#entity_snapshot ⇒ Object
21 22 23 |
# File 'lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb', line 21 def entity_snapshot @revision&.entity_snapshot end |
#normalized_json ⇒ Object
29 30 31 |
# File 'lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb', line 29 def normalized_json @comprehensive_resource&.normalized_json end |
#normalized_payload ⇒ Object
25 26 27 |
# File 'lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb', line 25 def normalized_payload @comprehensive_resource&.normalized_payload end |
#present? ⇒ Boolean
17 18 19 |
# File 'lib/reactor_sdk/resources/comprehensive_upstream_chain_entry.rb', line 17 def present? !@resource.nil? end |