Class: TreasureData::IpLimit
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#mask ⇒ Object
readonly
Returns the value of attribute mask.
-
#org ⇒ Object
readonly
Returns the value of attribute org.
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize(client, org, address, mask) ⇒ IpLimit
constructor
A new instance of IpLimit.
- #ip_range ⇒ Object
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
#address ⇒ Object (readonly)
Returns the value of attribute address.
511 512 513 |
# File 'lib/td/client/model.rb', line 511 def address @address end |
#mask ⇒ Object (readonly)
Returns the value of attribute mask.
511 512 513 |
# File 'lib/td/client/model.rb', line 511 def mask @mask end |
#org ⇒ Object (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_range ⇒ Object
507 508 509 |
# File 'lib/td/client/model.rb', line 507 def ip_range "#{address}/#{mask}" end |