Class: Square::Connect::Merchant
- Includes:
- Connections::BankAccounts, Connections::Payments, Connections::Refunds, Connections::Settlements
- Defined in:
- lib/square/connect/merchant.rb
Instance Attribute Summary collapse
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#email ⇒ Object
Returns the value of attribute email.
-
#language_code ⇒ Object
Returns the value of attribute language_code.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes inherited from Node
#access_token, #endpoint, #identifier
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ Merchant
constructor
A new instance of Merchant.
Methods included from Connections::Payments
Methods inherited from Node
Constructor Details
#initialize(*args) ⇒ Merchant
13 14 15 16 17 18 19 20 |
# File 'lib/square/connect/merchant.rb', line 13 def initialize(*args) super do |attributes| self.name = attributes[:name] self.email = attributes[:email] self.country_code = attributes[:country_code] self.language_code = attributes[:language_code] end end |
Instance Attribute Details
#country_code ⇒ Object
Returns the value of attribute country_code.
11 12 13 |
# File 'lib/square/connect/merchant.rb', line 11 def country_code @country_code end |
#email ⇒ Object
Returns the value of attribute email.
11 12 13 |
# File 'lib/square/connect/merchant.rb', line 11 def email @email end |
#language_code ⇒ Object
Returns the value of attribute language_code.
11 12 13 |
# File 'lib/square/connect/merchant.rb', line 11 def language_code @language_code end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/square/connect/merchant.rb', line 11 def name @name end |
Class Method Details
.me(access_token) ⇒ Object
23 24 25 |
# File 'lib/square/connect/merchant.rb', line 23 def me(access_token) new :me, access_token end |