Class: TreasureData::IpLimit

Inherits:
Model
  • Object
show all
Defined in:
lib/td/client/model.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#client

Instance Method Summary collapse

Constructor Details

#initialize(client, org, address, mask) ⇒ IpLimit

Returns a new instance of IpLimit.



500
501
502
503
504
505
# File 'lib/td/client/model.rb', line 500

def initialize(client, org, address, mask)
  super(client)
  @org = org
  @address = address
  @mask = mask
end

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



511
512
513
# File 'lib/td/client/model.rb', line 511

def address
  @address
end

#maskObject (readonly)

Returns the value of attribute mask.



511
512
513
# File 'lib/td/client/model.rb', line 511

def mask
  @mask
end

#orgObject (readonly)

Returns the value of attribute org.



511
512
513
# File 'lib/td/client/model.rb', line 511

def org
  @org
end

Instance Method Details

#ip_rangeObject



507
508
509
# File 'lib/td/client/model.rb', line 507

def ip_range
  "#{address}/#{mask}"
end