Class: Shopifydev::ShopifyAPI::ConsumeAPI::Report
- Inherits:
-
Object
- Object
- Shopifydev::ShopifyAPI::ConsumeAPI::Report
- Defined in:
- lib/shopifydev/shopify_api/consume_api.rb
Instance Attribute Summary collapse
-
#level ⇒ Object
Returns the value of attribute level.
-
#msg ⇒ Object
Returns the value of attribute msg.
Instance Method Summary collapse
-
#initialize(hash) ⇒ Report
constructor
A new instance of Report.
Constructor Details
#initialize(hash) ⇒ Report
Returns a new instance of Report.
9 10 11 12 |
# File 'lib/shopifydev/shopify_api/consume_api.rb', line 9 def initialize(hash) @level = hash.first.first @msg = hash.first.last end |
Instance Attribute Details
#level ⇒ Object
Returns the value of attribute level.
8 9 10 |
# File 'lib/shopifydev/shopify_api/consume_api.rb', line 8 def level @level end |
#msg ⇒ Object
Returns the value of attribute msg.
8 9 10 |
# File 'lib/shopifydev/shopify_api/consume_api.rb', line 8 def msg @msg end |