Class: Ast::Merge::PCS
- Inherits:
-
Struct
- Object
- Struct
- Ast::Merge::PCS
- Defined in:
- lib/ast/merge.rb
Instance Attribute Summary collapse
-
#base_revision ⇒ Object
Returns the value of attribute base_revision.
-
#constraints ⇒ Object
Returns the value of attribute constraints.
-
#pcs_id ⇒ Object
Returns the value of attribute pcs_id.
-
#tree_id ⇒ Object
Returns the value of attribute tree_id.
Instance Method Summary collapse
Instance Attribute Details
#base_revision ⇒ Object
Returns the value of attribute base_revision
271 272 273 |
# File 'lib/ast/merge.rb', line 271 def base_revision @base_revision end |
#constraints ⇒ Object
Returns the value of attribute constraints
271 272 273 |
# File 'lib/ast/merge.rb', line 271 def constraints @constraints end |
#pcs_id ⇒ Object
Returns the value of attribute pcs_id
271 272 273 |
# File 'lib/ast/merge.rb', line 271 def pcs_id @pcs_id end |
#tree_id ⇒ Object
Returns the value of attribute tree_id
271 272 273 |
# File 'lib/ast/merge.rb', line 271 def tree_id @tree_id end |
Instance Method Details
#to_h ⇒ Object
272 273 274 275 276 277 278 279 |
# File 'lib/ast/merge.rb', line 272 def to_h { pcs_id: pcs_id, tree_id: tree_id, base_revision: base_revision, constraints: (constraints || []).map(&:to_h) } end |