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.



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

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.



516
517
518
# File 'lib/td/client/model.rb', line 516

def address
  @address
end

#maskObject (readonly)

Returns the value of attribute mask.



516
517
518
# File 'lib/td/client/model.rb', line 516

def mask
  @mask
end

#orgObject (readonly)

Returns the value of attribute org.



516
517
518
# File 'lib/td/client/model.rb', line 516

def org
  @org
end

Instance Method Details

#ip_rangeObject



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

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