Class: RubyPushNotifications::WNS::WNSAccess::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby-push-notifications/wns/wns_access.rb

Overview

This class is responsible for structurize response from login WNS service

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ Response

Returns a new instance of Response.



18
19
20
# File 'lib/ruby-push-notifications/wns/wns_access.rb', line 18

def initialize(response)
  @response = structurize(response)
end

Instance Attribute Details

#responseOpenStruct (readonly)

Returns . Return structurized response.

Returns:

  • (OpenStruct)

    . Return structurized response



16
17
18
# File 'lib/ruby-push-notifications/wns/wns_access.rb', line 16

def response
  @response
end