Class: CypressViewportUpdater::ExistingGithubFile
- Inherits:
-
Object
- Object
- CypressViewportUpdater::ExistingGithubFile
- Defined in:
- app/sidekiq/cypress_viewport_updater/existing_github_file.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#github_path ⇒ Object
readonly
Returns the value of attribute github_path.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#raw_content ⇒ Object
Returns the value of attribute raw_content.
-
#sha ⇒ Object
Returns the value of attribute sha.
-
#updated_content ⇒ Object
Returns the value of attribute updated_content.
Instance Method Summary collapse
-
#initialize(github_path:, name:) ⇒ ExistingGithubFile
constructor
A new instance of ExistingGithubFile.
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_path ⇒ Object (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 |
#name ⇒ Object (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_content ⇒ Object
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 |
#sha ⇒ Object
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_content ⇒ Object
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 |