Class: GitLfsS3::UploadService::Base

Inherits:
Object
  • Object
show all
Includes:
AwsHelpers
Defined in:
lib/git-lfs-s3/services/upload/base.rb

Direct Known Subclasses

ObjectExists, UploadRequired

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from AwsHelpers

#aws_access_key_id, #aws_region, #aws_secret_access_key, #bucket, #bucket_name, #object_data, #s3

Constructor Details

#initialize(req, object) ⇒ Base

Returns a new instance of Base.



10
11
12
13
# File 'lib/git-lfs-s3/services/upload/base.rb', line 10

def initialize(req, object)
  @req = req
  @object = object
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



8
9
10
# File 'lib/git-lfs-s3/services/upload/base.rb', line 8

def object
  @object
end

#reqObject (readonly)

Returns the value of attribute req.



8
9
10
# File 'lib/git-lfs-s3/services/upload/base.rb', line 8

def req
  @req
end

Instance Method Details

#responseObject



15
16
17
# File 'lib/git-lfs-s3/services/upload/base.rb', line 15

def response
  raise 'Override'
end

#statusObject



19
20
21
# File 'lib/git-lfs-s3/services/upload/base.rb', line 19

def status
  raise 'Override'
end