Class: LazyAnt::Group

Inherits:
Object
  • Object
show all
Includes:
DSL::Endpoint
Defined in:
lib/lazy_ant/group.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Methods included from DSL::Connection

#callbacks, #connection, #converter_block, #converter_name, #default_callback, #instance_callbacks, #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

.nameObject

Returns the value of attribute name.



30
31
32
# File 'lib/lazy_ant/group.rb', line 30

def name
  @name
end

.parentObject

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_urlObject



17
18
19
# File 'lib/lazy_ant/group.rb', line 17

def base_url
  @parent.base_url
end

#configObject



13
14
15
# File 'lib/lazy_ant/group.rb', line 13

def config
  @parent.config
end

#inspectObject



9
10
11
# File 'lib/lazy_ant/group.rb', line 9

def inspect
  "<LazyAnt::Group #{name}>"
end

#nameObject



21
22
23
# File 'lib/lazy_ant/group.rb', line 21

def name
  self.class.name
end