Class: Moneta::Api::Responses::KeyValueResponse

Inherits:
Object
  • Object
show all
Includes:
DataMapper
Defined in:
lib/moneta/api/responses/key_value_response.rb

Direct Known Subclasses

BankAccountInfo, GetProfileInfoResponse

Instance Method Summary collapse

Methods included from DataMapper

#to_hash

Instance Method Details

#fill(attributes) ⇒ Object



9
10
11
12
13
# File 'lib/moneta/api/responses/key_value_response.rb', line 9

def fill(attributes)
  @attribute = KeyValueSerializer.deserialize(attributes.delete(:attribute))
  super
  self
end