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.



2268
2269
2270
2271
# File 'lib/webpay/data_types.rb', line 2268

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

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



2261
2262
2263
# File 'lib/webpay/data_types.rb', line 2261

def attributes
  @attributes
end

Class Method Details

.fieldsObject



2263
2264
2265
# File 'lib/webpay/data_types.rb', line 2263

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

Instance Method Details

#card_types_supportedObject



2304
2305
2306
# File 'lib/webpay/data_types.rb', line 2304

def card_types_supported
  attributes['card_types_supported']
end

#charge_enabledObject



2284
2285
2286
# File 'lib/webpay/data_types.rb', line 2284

def charge_enabled
  attributes['charge_enabled']
end

#currencies_supportedObject



2288
2289
2290
# File 'lib/webpay/data_types.rb', line 2288

def currencies_supported
  attributes['currencies_supported']
end

#details_submittedObject



2292
2293
2294
# File 'lib/webpay/data_types.rb', line 2292

def 
  attributes['details_submitted']
end

#emailObject



2296
2297
2298
# File 'lib/webpay/data_types.rb', line 2296

def email
  attributes['email']
end

#idObject

attributes accessors



2276
2277
2278
# File 'lib/webpay/data_types.rb', line 2276

def id
  attributes['id']
end

#objectObject



2280
2281
2282
# File 'lib/webpay/data_types.rb', line 2280

def object
  attributes['object']
end

#statement_descriptorObject



2300
2301
2302
# File 'lib/webpay/data_types.rb', line 2300

def statement_descriptor
  attributes['statement_descriptor']
end