lib/paydunya/checkout/store.rb in paydunya-1.0.5 vs lib/paydunya/checkout/store.rb in paydunya-1.0.6

- old
+ new

@@ -1,34 +1,12 @@ module Paydunya module Checkout module Store - @@name = "Untitled Store" - @@tagline = nil - @@postal_address = nil - @@phone_number = nil - @@website_url = nil - @@logo_url = nil - @@cancel_url = nil - @@return_url = nil - @@callback_url = nil + class << self + attr_accessor :name, :tagline, :postal_address, :phone_number, + :website_url, :logo_url, :cancel_url, :return_url, :callback_url + end - def self.name=(name); @@name = name; end - def self.name; @@name; end - def self.tagline=(tagline); @@tagline = tagline; end - def self.tagline; @@tagline; end - def self.postal_address=(postal_address); @@postal_address = postal_address; end - def self.postal_address; @@postal_address; end - def self.phone_number=(phone_number); @@phone_number = phone_number; end - def self.phone_number; @@phone_number; end - def self.website_url=(website_url); @@website_url = website_url; end - def self.website_url; @@website_url; end - def self.logo_url=(logo_url); @@logo_url = logo_url; end - def self.logo_url; @@logo_url; end - def self.cancel_url=(cancel_url); @@cancel_url = cancel_url; end - def self.cancel_url; @@cancel_url; end - def self.return_url=(return_url); @@return_url = return_url; end - def self.return_url; @@return_url; end - def self.callback_url=(callback_url); @@callback_url = callback_url; end - def self.callback_url; @@callback_url; end + self.name = 'Untitled Store' end end -end \ No newline at end of file +end