Class: Gitlab::GithubImport::Representation::ReplayEvent

Inherits:
Object
  • Object
show all
Includes:
ExposeAttribute, ToHash
Defined in:
lib/gitlab/github_import/representation/replay_event.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#attributesObject (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_identifiersObject



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