Class: Fastbill::Automatic::Request::Base
- Inherits:
-
Object
- Object
- Fastbill::Automatic::Request::Base
- Defined in:
- lib/fastbill-automatic/request/base.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#response ⇒ Object
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(info) ⇒ Base
constructor
A new instance of Base.
- #perform ⇒ Object
Constructor Details
#initialize(info) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/fastbill-automatic/request/base.rb', line 8 def initialize(info) @info = info end |
Instance Attribute Details
#info ⇒ Object (readonly)
Returns the value of attribute info.
5 6 7 |
# File 'lib/fastbill-automatic/request/base.rb', line 5 def info @info end |
#response ⇒ Object
Returns the value of attribute response.
6 7 8 |
# File 'lib/fastbill-automatic/request/base.rb', line 6 def response @response end |
Instance Method Details
#perform ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/fastbill-automatic/request/base.rb', line 12 def perform raise AuthenticationError if Fastbill::Automatic.api_key.nil? || Fastbill::Automatic.email.nil? connection.setup_https send_request validator.validated_data_for(response) end |