Class: Starling::Resources::MerchantLocationResource
- Inherits:
-
BaseResource
- Object
- BaseResource
- Starling::Resources::MerchantLocationResource
- Defined in:
- lib/starling/resources/merchant_location_resource.rb
Overview
A resource representing a Merchant Location returned from the Merchant Locations API
Instance Method Summary collapse
-
#location_name ⇒ String
The name of the merchant location.
-
#mastercard_merchant_category_code ⇒ Integer, Fixnum
The MasterCard merchant category code - see here for details.
-
#merchant_location_uid ⇒ String
The Starling internal ID of the merchant location.
-
#merchant_name ⇒ String
The name of the merchant.
-
#merchant_uid ⇒ String
The Starling internal ID of the merchant.
Methods inherited from BaseResource
Constructor Details
This class inherits a constructor from Starling::Resources::BaseResource
Instance Method Details
#location_name ⇒ String
Returns the name of the merchant location.
21 22 23 |
# File 'lib/starling/resources/merchant_location_resource.rb', line 21 def location_name parsed_data['locationName'] end |
#mastercard_merchant_category_code ⇒ Integer, Fixnum
Returns the MasterCard merchant category code - see here for details.
28 29 30 |
# File 'lib/starling/resources/merchant_location_resource.rb', line 28 def mastercard_merchant_category_code parsed_data['mastercardMerchantCategoryCode'] end |
#merchant_location_uid ⇒ String
Returns the Starling internal ID of the merchant location.
11 12 13 |
# File 'lib/starling/resources/merchant_location_resource.rb', line 11 def merchant_location_uid parsed_data['merchantLocationUid'] end |
#merchant_name ⇒ String
Returns the name of the merchant.
16 17 18 |
# File 'lib/starling/resources/merchant_location_resource.rb', line 16 def merchant_name parsed_data['merchantName'] end |
#merchant_uid ⇒ String
Returns the Starling internal ID of the merchant.
6 7 8 |
# File 'lib/starling/resources/merchant_location_resource.rb', line 6 def merchant_uid parsed_data['merchantUid'] end |