Module: Claire::Client::Item::ClassMethods
- Defined in:
- lib/claire_client/item.rb
Instance Method Summary collapse
-
#base_url ⇒ Object
Returns this class base URI on the server, or guesses it from this class name.
-
#base_url=(arg) ⇒ Object
Manually set this class base URI on the server.
Instance Method Details
#base_url ⇒ Object
Returns this class base URI on the server, or guesses it from this class name.
66 67 68 69 70 71 |
# File 'lib/claire_client/item.rb', line 66 def base_url if defined? @@base_url return @@base_url unless @@base_url.nil? end self.to_s.downcase.pluralize.split('::').last end |
#base_url=(arg) ⇒ Object
Manually set this class base URI on the server.
74 75 76 |
# File 'lib/claire_client/item.rb', line 74 def base_url= arg @@base_url = arg end |