Class: Samwise::DunsLookup
- Inherits:
-
Object
- Object
- Samwise::DunsLookup
- Defined in:
- lib/samwise/duns_lookup.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
-
#initialize(response) ⇒ DunsLookup
constructor
A new instance of DunsLookup.
- #small_business? ⇒ Boolean
Constructor Details
#initialize(response) ⇒ DunsLookup
Returns a new instance of DunsLookup.
5 6 7 |
# File 'lib/samwise/duns_lookup.rb', line 5 def initialize(response) @response = response end |
Instance Attribute Details
#response ⇒ Object (readonly)
Returns the value of attribute response.
3 4 5 |
# File 'lib/samwise/duns_lookup.rb', line 3 def response @response end |
Instance Method Details
#small_business? ⇒ Boolean
9 10 11 12 13 14 15 |
# File 'lib/samwise/duns_lookup.rb', line 9 def small_business? if response.status == 200 small_business_response else false end end |