Class: RoyalMailApi::Client
- Inherits:
-
Object
- Object
- RoyalMailApi::Client
- Defined in:
- lib/royal_mail_api/client.rb
Class Attribute Summary collapse
-
.config ⇒ Object
readonly
Returns the value of attribute config.
-
.errors ⇒ Object
readonly
Returns the value of attribute errors.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/royal_mail_api/client.rb', line 4 def config @config end |
.errors ⇒ Object (readonly)
Returns the value of attribute errors.
4 5 6 |
# File 'lib/royal_mail_api/client.rb', line 4 def errors @errors end |
Class Method Details
.configure {|config| ... } ⇒ Object
6 7 8 9 10 11 |
# File 'lib/royal_mail_api/client.rb', line 6 def configure raise ArgumentError, "block not given" unless block_given? @config = Config.new yield config end |