class Opera::MobileStore::PaymentInfo::Check
Attributes
address[RW]
name[RW]
Public Class Methods
build_from_nokogiri_node(node)
click to toggle source
# File lib/opera/mobile_store/payment_info.rb, line 49 def self.build_from_nokogiri_node(node) self.new( name: node.xpath("string(payment_check_name)"), address: node.xpath("string(payment_check_address)") ) end
Public Instance Methods
attributes()
click to toggle source
# File lib/opera/mobile_store/payment_info.rb, line 56 def attributes [:type, :name, :address].inject({}) do |hash, method| value = self.public_send method hash[method] = value unless value.nil? hash end end