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.



2333
2334
2335
2336
# File 'lib/webpay/data_types.rb', line 2333

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

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



2326
2327
2328
# File 'lib/webpay/data_types.rb', line 2326

def attributes
  @attributes
end

Class Method Details

.fieldsObject



2328
2329
2330
# File 'lib/webpay/data_types.rb', line 2328

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

Instance Method Details

#card_types_supportedObject



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

def card_types_supported
  attributes['card_types_supported']
end

#charge_enabledObject



2349
2350
2351
# File 'lib/webpay/data_types.rb', line 2349

def charge_enabled
  attributes['charge_enabled']
end

#currencies_supportedObject



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

def currencies_supported
  attributes['currencies_supported']
end

#details_submittedObject



2357
2358
2359
# File 'lib/webpay/data_types.rb', line 2357

def 
  attributes['details_submitted']
end

#emailObject



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

def email
  attributes['email']
end

#idObject

attributes accessors



2341
2342
2343
# File 'lib/webpay/data_types.rb', line 2341

def id
  attributes['id']
end

#objectObject



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

def object
  attributes['object']
end

#statement_descriptorObject



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

def statement_descriptor
  attributes['statement_descriptor']
end