Class: MobileDataResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/AfricasTalking/Mobiledata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(phoneNumber_, provider_, status_, transactionId_, value_) ⇒ MobileDataResponse

Returns a new instance of MobileDataResponse.



113
114
115
116
117
118
119
# File 'lib/AfricasTalking/Mobiledata.rb', line 113

def initialize phoneNumber_, provider_, status_, transactionId_, value_
    @phoneNumber     = phoneNumber_
    @provider        = provider_
    @status          = status_
           @transactionId   = transactionId_
    @value           = value_
end

Instance Attribute Details

#phoneNumberObject (readonly)

Returns the value of attribute phoneNumber.



111
112
113
# File 'lib/AfricasTalking/Mobiledata.rb', line 111

def phoneNumber
  @phoneNumber
end

#providerObject (readonly)

Returns the value of attribute provider.



111
112
113
# File 'lib/AfricasTalking/Mobiledata.rb', line 111

def provider
  @provider
end

#statusObject (readonly)

Returns the value of attribute status.



111
112
113
# File 'lib/AfricasTalking/Mobiledata.rb', line 111

def status
  @status
end

#transactionIdObject (readonly)

Returns the value of attribute transactionId.



111
112
113
# File 'lib/AfricasTalking/Mobiledata.rb', line 111

def transactionId
  @transactionId
end

#valueObject (readonly)

Returns the value of attribute value.



111
112
113
# File 'lib/AfricasTalking/Mobiledata.rb', line 111

def value
  @value
end