Class: GoodReceipt::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/good_receipt/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



11
12
13
14
15
16
17
18
19
# File 'lib/good_receipt/base.rb', line 11

def initialize
  @business_name = 'Business Name'
  @business_phone = '(000) 111-1234'
  @business_email = '[email protected]'
  @storage_project_id = 'google-cloud-project'
  @storage_bucket = 'google-cloud-bucket-name'
  @storage_credentials = '/path/to/credentials'
  @logo_path = nil
end

Instance Attribute Details

#business_emailObject

Returns the value of attribute business_email.



8
9
10
# File 'lib/good_receipt/base.rb', line 8

def business_email
  @business_email
end

#business_nameObject

Returns the value of attribute business_name.



8
9
10
# File 'lib/good_receipt/base.rb', line 8

def business_name
  @business_name
end

#business_phoneObject

Returns the value of attribute business_phone.



8
9
10
# File 'lib/good_receipt/base.rb', line 8

def business_phone
  @business_phone
end

#logo_pathObject

Returns the value of attribute logo_path.



8
9
10
# File 'lib/good_receipt/base.rb', line 8

def logo_path
  @logo_path
end

#storage_bucketObject

Returns the value of attribute storage_bucket.



8
9
10
# File 'lib/good_receipt/base.rb', line 8

def storage_bucket
  @storage_bucket
end

#storage_credentialsObject

Returns the value of attribute storage_credentials.



8
9
10
# File 'lib/good_receipt/base.rb', line 8

def storage_credentials
  @storage_credentials
end

#storage_project_idObject

Returns the value of attribute storage_project_id.



8
9
10
# File 'lib/good_receipt/base.rb', line 8

def storage_project_id
  @storage_project_id
end