Class: LazyAnt::Group
- Inherits:
-
Object
- Object
- LazyAnt::Group
- Includes:
- DSL::Endpoint
- Defined in:
- lib/lazy_ant/group.rb
Class Attribute Summary collapse
-
.name ⇒ Object
Returns the value of attribute name.
-
.parent ⇒ Object
Returns the value of attribute parent.
Attributes included from DSL::Connection
Instance Method Summary collapse
- #base_url ⇒ Object
- #config ⇒ Object
-
#initialize(parent) ⇒ Group
constructor
A new instance of Group.
- #inspect ⇒ Object
- #name ⇒ Object
Methods included from DSL::Connection
#connection, #converter_block, #converter_name, #default_callback, #request_type, #response_type, #use_converter
Constructor Details
#initialize(parent) ⇒ Group
Returns a new instance of Group.
5 6 7 |
# File 'lib/lazy_ant/group.rb', line 5 def initialize(parent) @parent = parent end |
Class Attribute Details
.name ⇒ Object
Returns the value of attribute name.
30 31 32 |
# File 'lib/lazy_ant/group.rb', line 30 def name @name end |
.parent ⇒ Object
Returns the value of attribute parent.
31 32 33 |
# File 'lib/lazy_ant/group.rb', line 31 def parent @parent end |
Instance Method Details
#base_url ⇒ Object
17 18 19 |
# File 'lib/lazy_ant/group.rb', line 17 def base_url @parent.base_url end |
#config ⇒ Object
13 14 15 |
# File 'lib/lazy_ant/group.rb', line 13 def config @parent.config end |
#inspect ⇒ Object
9 10 11 |
# File 'lib/lazy_ant/group.rb', line 9 def inspect "<LazyAnt::Group #{name}>" end |
#name ⇒ Object
21 22 23 |
# File 'lib/lazy_ant/group.rb', line 21 def name self.class.name end |