Class: CypressViewportUpdater::ExistingGithubFile

Inherits:
Object
  • Object
show all
Defined in:
app/sidekiq/cypress_viewport_updater/existing_github_file.rb

Direct Known Subclasses

CypressConfigJsFile, ViewportPresetJsFile

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(github_path:, name:) ⇒ ExistingGithubFile

Returns a new instance of ExistingGithubFile.



8
9
10
11
# File 'app/sidekiq/cypress_viewport_updater/existing_github_file.rb', line 8

def initialize(github_path:, name:)
  @github_path = github_path
  @name = name
end

Instance Attribute Details

#github_pathObject (readonly)

Returns the value of attribute github_path.



5
6
7
# File 'app/sidekiq/cypress_viewport_updater/existing_github_file.rb', line 5

def github_path
  @github_path
end

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'app/sidekiq/cypress_viewport_updater/existing_github_file.rb', line 5

def name
  @name
end

#raw_contentObject

Returns the value of attribute raw_content.



6
7
8
# File 'app/sidekiq/cypress_viewport_updater/existing_github_file.rb', line 6

def raw_content
  @raw_content
end

#shaObject

Returns the value of attribute sha.



6
7
8
# File 'app/sidekiq/cypress_viewport_updater/existing_github_file.rb', line 6

def sha
  @sha
end

#updated_contentObject

Returns the value of attribute updated_content.



6
7
8
# File 'app/sidekiq/cypress_viewport_updater/existing_github_file.rb', line 6

def updated_content
  @updated_content
end