Class: Gitlab::GithubImport::Representation::ReplayEvent
- Inherits:
-
Object
- Object
- Gitlab::GithubImport::Representation::ReplayEvent
- Includes:
- ExposeAttribute, ToHash
- Defined in:
- lib/gitlab/github_import/representation/replay_event.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
Class Method Summary collapse
Instance Method Summary collapse
- #github_identifiers ⇒ Object
-
#initialize(attributes) ⇒ ReplayEvent
constructor
A new instance of ReplayEvent.
Methods included from ExposeAttribute
Methods included from ToHash
#convert_value_for_to_hash, #to_hash
Constructor Details
#initialize(attributes) ⇒ ReplayEvent
Returns a new instance of ReplayEvent.
18 19 20 |
# File 'lib/gitlab/github_import/representation/replay_event.rb', line 18 def initialize(attributes) @attributes = attributes end |
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
10 11 12 |
# File 'lib/gitlab/github_import/representation/replay_event.rb', line 10 def attributes @attributes end |
Class Method Details
.from_json_hash(raw_hash) ⇒ Object
14 15 16 |
# File 'lib/gitlab/github_import/representation/replay_event.rb', line 14 def self.from_json_hash(raw_hash) new Representation.symbolize_hash(raw_hash) end |
Instance Method Details
#github_identifiers ⇒ Object
22 23 24 25 26 27 |
# File 'lib/gitlab/github_import/representation/replay_event.rb', line 22 def github_identifiers { issuable_type: issuable_type, issuable_iid: issuable_iid } end |