Class: Shopifydev::ShopifyAPI::ConsumeAPI::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/shopifydev/shopify_api/consume_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#levelObject

Returns the value of attribute level.



8
9
10
# File 'lib/shopifydev/shopify_api/consume_api.rb', line 8

def level
  @level
end

#msgObject

Returns the value of attribute msg.



8
9
10
# File 'lib/shopifydev/shopify_api/consume_api.rb', line 8

def msg
  @msg
end