Module: Gitlab::GithubImport::Representation::ExposeAttribute

Extended by:
ActiveSupport::Concern
Included in:
Gitlab::GithubGistsImport::Representation::Gist, Collaborator, DiffNote, Issue, IssueEvent, LfsObject, Note, NoteText, ProtectedBranch, PullRequest, PullRequestReview, PullRequests::ReviewRequests, User
Defined in:
lib/gitlab/github_import/representation/expose_attribute.rb

Instance Method Summary collapse

Instance Method Details

#[](key) ⇒ Object



24
25
26
# File 'lib/gitlab/github_import/representation/expose_attribute.rb', line 24

def [](key)
  respond_to?(key.to_sym) ? attributes[key] : nil
end