Class: WebPay::AccountResponse

Inherits:
Entity
  • Object
show all
Defined in:
lib/webpay/data_types.rb

Overview

attributes accessors

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Entity

#normalize_hash, #to_h, #to_s

Constructor Details

#initialize(hash = {}) ⇒ AccountResponse

Returns a new instance of AccountResponse.



2352
2353
2354
2355
# File 'lib/webpay/data_types.rb', line 2352

def initialize(hash = {})
  hash = normalize_hash(hash)
  @attributes = hash
end

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



2345
2346
2347
# File 'lib/webpay/data_types.rb', line 2345

def attributes
  @attributes
end

Class Method Details

.fieldsObject



2347
2348
2349
# File 'lib/webpay/data_types.rb', line 2347

def self.fields
  ['id', 'object', 'charge_enabled', 'currencies_supported', 'details_submitted', 'email', 'statement_descriptor', 'card_types_supported']
end

Instance Method Details

#card_types_supportedObject



2388
2389
2390
# File 'lib/webpay/data_types.rb', line 2388

def card_types_supported
  attributes['card_types_supported']
end

#charge_enabledObject



2368
2369
2370
# File 'lib/webpay/data_types.rb', line 2368

def charge_enabled
  attributes['charge_enabled']
end

#currencies_supportedObject



2372
2373
2374
# File 'lib/webpay/data_types.rb', line 2372

def currencies_supported
  attributes['currencies_supported']
end

#details_submittedObject



2376
2377
2378
# File 'lib/webpay/data_types.rb', line 2376

def 
  attributes['details_submitted']
end

#emailObject



2380
2381
2382
# File 'lib/webpay/data_types.rb', line 2380

def email
  attributes['email']
end

#idObject

attributes accessors



2360
2361
2362
# File 'lib/webpay/data_types.rb', line 2360

def id
  attributes['id']
end

#objectObject



2364
2365
2366
# File 'lib/webpay/data_types.rb', line 2364

def object
  attributes['object']
end

#statement_descriptorObject



2384
2385
2386
# File 'lib/webpay/data_types.rb', line 2384

def statement_descriptor
  attributes['statement_descriptor']
end