Class: Opera::MobileStore::PaymentInfo::PayPal

Inherits:
Opera::MobileStore::PaymentInfo show all
Defined in:
lib/opera/mobile_store/payment_info.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Opera::MobileStore::PaymentInfo

deserialize, #type

Methods included from InspectableAttributes

#inspect

Instance Attribute Details

#accountObject

Returns the value of attribute account.



106
107
108
# File 'lib/opera/mobile_store/payment_info.rb', line 106

def 
  @account
end

Class Method Details

.build_from_nokogiri_node(node) ⇒ Object



107
108
109
# File 'lib/opera/mobile_store/payment_info.rb', line 107

def self.build_from_nokogiri_node(node)
  self.new(account: node.xpath("string(account)").strip)
end

Instance Method Details

#attributesObject



111
112
113
# File 'lib/opera/mobile_store/payment_info.rb', line 111

def attributes
  { type: 'paypal', account:  }
end