Class: E2B::Models::SnapshotInfo
- Inherits:
-
Object
- Object
- E2B::Models::SnapshotInfo
- Defined in:
- lib/e2b/models/snapshot_info.rb
Instance Attribute Summary collapse
-
#snapshot_id ⇒ Object
readonly
Returns the value of attribute snapshot_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(snapshot_id:) ⇒ SnapshotInfo
constructor
A new instance of SnapshotInfo.
Constructor Details
#initialize(snapshot_id:) ⇒ SnapshotInfo
Returns a new instance of SnapshotInfo.
14 15 16 |
# File 'lib/e2b/models/snapshot_info.rb', line 14 def initialize(snapshot_id:) @snapshot_id = snapshot_id end |
Instance Attribute Details
#snapshot_id ⇒ Object (readonly)
Returns the value of attribute snapshot_id.
6 7 8 |
# File 'lib/e2b/models/snapshot_info.rb', line 6 def snapshot_id @snapshot_id end |
Class Method Details
.from_hash(data) ⇒ Object
8 9 10 11 12 |
# File 'lib/e2b/models/snapshot_info.rb', line 8 def self.from_hash(data) new( snapshot_id: data["snapshotID"] || data["snapshot_id"] || data[:snapshotID] ) end |